Browse Source

Fix M43 timer report on AVR (#16645)

ellensp 4 years ago
parent
commit
c49e987b1e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      Marlin/src/HAL/HAL_AVR/pinsDebug.h

+ 2
- 2
Marlin/src/HAL/HAL_AVR/pinsDebug.h View File

@@ -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
 

Loading…
Cancel
Save