Quellcode durchsuchen

Fix M43 timer report on AVR (#16645)

ellensp vor 5 Jahren
Ursprung
Commit
c49e987b1e
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2
    2
      Marlin/src/HAL/HAL_AVR/pinsDebug.h

+ 2
- 2
Marlin/src/HAL/HAL_AVR/pinsDebug.h Datei anzeigen

@@ -231,10 +231,10 @@ static void err_is_interrupt()   { SERIAL_ECHOPGM("   compare interrupt enabled"
231 231
 static void err_prob_interrupt() { SERIAL_ECHOPGM("   overflow interrupt enabled"); }
232 232
 static void print_is_also_tied() { SERIAL_ECHOPGM(" is also tied to this pin"); SERIAL_ECHO_SP(14); }
233 233
 
234
-void com_print(uint8_t N, uint8_t Z) {
234
+inline void com_print(const uint8_t N, const uint8_t Z) {
235 235
   const uint8_t *TCCRA = (uint8_t*)TCCR_A(N);
236 236
   SERIAL_ECHOPGM("    COM");
237
-  SERIAL_CHAR('0' + N, 'A' + Z);
237
+  SERIAL_CHAR('0' + N, Z);
238 238
   SERIAL_ECHOPAIR(": ", int((*TCCRA >> (6 - Z * 2)) & 0x03));
239 239
 }
240 240
 

Laden…
Abbrechen
Speichern