Make sure leds clear each time

This commit is contained in:
Paul Dino Jones
2025-03-24 12:13:39 -04:00
parent 97d69bec9c
commit ac17b24cf6
+4 -1
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;