浏览代码

Patch Max7219_LED_Set input args

Scott Lahteine 7 年前
父节点
当前提交
1ce0fb336b
共有 1 个文件被更改,包括 10 次插入10 次删除
  1. 10
    10
      Marlin/src/feature/Max7219_Debug_LEDs.cpp

+ 10
- 10
Marlin/src/feature/Max7219_Debug_LEDs.cpp 查看文件

100
   MS_DELAY();
100
   MS_DELAY();
101
 }
101
 }
102
 
102
 
103
-void Max7219_LED_Set(const uint8_t row, const uint8_t col, const bool on) {
103
+void Max7219_LED_Set(const uint8_t col, const uint8_t row, const bool on) {
104
   if (row > 7 || col > 7) {
104
   if (row > 7 || col > 7) {
105
     SERIAL_ECHOPAIR("??? Max7219_LED_Set(", (int)row);
105
     SERIAL_ECHOPAIR("??? Max7219_LED_Set(", (int)row);
106
     SERIAL_ECHOPAIR(",", (int)col);
106
     SERIAL_ECHOPAIR(",", (int)col);
272
  * or clear a row is not very significant.
272
  * or clear a row is not very significant.
273
  */
273
  */
274
 void Max7219_idle_tasks() {
274
 void Max7219_idle_tasks() {
275
-#if MAX7219_DEBUG_STEPPER_HEAD || MAX7219_DEBUG_STEPPER_TAIL || MAX7219_DEBUG_STEPPER_QUEUE
276
-  CRITICAL_SECTION_START
277
-  #if MAX7219_DEBUG_STEPPER_HEAD || MAX7219_DEBUG_STEPPER_QUEUE
278
-    const uint8_t head = planner.block_buffer_head;
279
-  #endif
280
-  #if MAX7219_DEBUG_STEPPER_TAIL || MAX7219_DEBUG_STEPPER_QUEUE
281
-    const uint8_t tail = planner.block_buffer_tail;
275
+  #if MAX7219_DEBUG_STEPPER_HEAD || MAX7219_DEBUG_STEPPER_TAIL || MAX7219_DEBUG_STEPPER_QUEUE
276
+    CRITICAL_SECTION_START
277
+    #if MAX7219_DEBUG_STEPPER_HEAD || MAX7219_DEBUG_STEPPER_QUEUE
278
+      const uint8_t head = planner.block_buffer_head;
279
+    #endif
280
+    #if MAX7219_DEBUG_STEPPER_TAIL || MAX7219_DEBUG_STEPPER_QUEUE
281
+      const uint8_t tail = planner.block_buffer_tail;
282
+    #endif
283
+    CRITICAL_SECTION_END
282
   #endif
284
   #endif
283
-  CRITICAL_SECTION_END
284
-#endif
285
 
285
 
286
   #if ENABLED(MAX7219_DEBUG_PRINTER_ALIVE)
286
   #if ENABLED(MAX7219_DEBUG_PRINTER_ALIVE)
287
     static millis_t next_blink = 0;
287
     static millis_t next_blink = 0;

正在加载...
取消
保存