Skip to content

Commit

Permalink
Added FreeRTOS vTaskDelay(1) to LED thread
Browse files Browse the repository at this point in the history
  • Loading branch information
connornishijima committed Mar 21, 2024
1 parent e22db50 commit 5f32926
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions SENSORY_BRIDGE_FIRMWARE/SENSORY_BRIDGE_FIRMWARE.ino
Original file line number Diff line number Diff line change
Expand Up @@ -224,10 +224,8 @@ void led_thread(void* arg) {
}

show_leds(); // This sends final RGB data to the LEDS (led_utilities.h)
LED_FPS = FastLED.getFPS();
}
else{
vTaskDelay(0);
LED_FPS = FastLED.getFPS();
}
vTaskDelay(1);
}
}

0 comments on commit 5f32926

Please sign in to comment.