瀏覽代碼

Fix M43 timer report on AVR (#16645)

ellensp 5 年之前
父節點
當前提交
c49e987b1e
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      Marlin/src/HAL/HAL_AVR/pinsDebug.h

+ 2
- 2
Marlin/src/HAL/HAL_AVR/pinsDebug.h 查看文件

@@ -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…
取消
儲存