From b4b1b6a27a63c1cd67bcb6d9c41a8afcdb545034 Mon Sep 17 00:00:00 2001 From: mrms <16727232+m-r-m-s@users.noreply.github.com> Date: Thu, 11 Aug 2022 14:42:12 -0400 Subject: [PATCH 1/2] Update TeensyUsbSlaveMidiClockMonitor.ino remove volatile reference pointer to avoid compilation error --- .../TeensyUsbSlaveMidiClockMonitor.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino b/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino index d912b90..f1349f3 100644 --- a/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino +++ b/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino @@ -34,7 +34,7 @@ float bpm = 126; uint8_t bpm_blink_timer = 1; uint8_t clock_state = 1; -void handle_bpm_led(uint32_t * tick) +void handle_bpm_led(uint32_t tick) { // BPM led indicator if ( !(tick % (96)) || (tick == 1) ) { // first compass step will flash longer From d0774599441fbd99c7d5c1e11f9a53340a3906d7 Mon Sep 17 00:00:00 2001 From: mrms <16727232+m-r-m-s@users.noreply.github.com> Date: Thu, 11 Aug 2022 14:44:55 -0400 Subject: [PATCH 2/2] Update TeensyUsbSlaveMidiClockMonitor.ino update to avoid linter warning --- .../TeensyUsbSlaveMidiClockMonitor.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino b/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino index f1349f3..1032c3a 100644 --- a/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino +++ b/examples/TeensyUsbSlaveMidiClockMonitor/TeensyUsbSlaveMidiClockMonitor.ino @@ -129,7 +129,7 @@ void printBpm(float _bpm, uint8_t col, uint8_t line) { if (b > 99) { u8x8->drawUTF8(col, line, bpm_str); } else { - bpm_str[2] = "\0"; + bpm_str[2] = '\0'; u8x8->drawUTF8(col, line, " "); u8x8->drawUTF8(col+1, line, bpm_str); }