Merge pull request #15 from m-r-m-s/patch-3

Fix old reference to value tick usage.
pull/19/head v1.1.2
midilab 2 years ago committed by GitHub
commit 8a27c0c3d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      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
@ -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);
}

Loading…
Cancel
Save