Make sure leds clear each time

This commit is contained in:
Paul Dino Jones 2025-03-24 12:13:39 -04:00
parent 22930163ec
commit f7e92083f2
1 changed files with 4 additions and 1 deletions

View File

@ -131,7 +131,10 @@ int cammusc12_customled_update(USBDevice* usbdevice, SimData* simdata)
size_t bufsize = (cammusc12_total_leds * 3); size_t bufsize = (cammusc12_total_leds * 3);
char ledbytes[bufsize]; char ledbytes[bufsize];
for(int x = 0; x < bufsize; x++)
{
ledbytes[x] = 0x00;
}
lua_State* L = usbdevice->m.L; lua_State* L = usbdevice->m.L;