|
@@ -100,7 +100,7 @@ void Max7219(const uint8_t reg, const uint8_t data) {
|
100
|
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
|
104
|
if (row > 7 || col > 7) {
|
105
|
105
|
SERIAL_ECHOPAIR("??? Max7219_LED_Set(", (int)row);
|
106
|
106
|
SERIAL_ECHOPAIR(",", (int)col);
|
|
@@ -272,16 +272,16 @@ void Max7219_init() {
|
272
|
272
|
* or clear a row is not very significant.
|
273
|
273
|
*/
|
274
|
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
|
284
|
#endif
|
283
|
|
- CRITICAL_SECTION_END
|
284
|
|
-#endif
|
285
|
285
|
|
286
|
286
|
#if ENABLED(MAX7219_DEBUG_PRINTER_ALIVE)
|
287
|
287
|
static millis_t next_blink = 0;
|