Mirror with some correction
Dependencies: mbed FastIO FastPWM USBDevice
Diff: main.cpp
- Revision:
- 114:c2410d2cfaf1
- Parent:
- 113:7330439f2ffc
--- a/main.cpp Wed Jun 02 02:14:27 2021 +0000 +++ b/main.cpp Fri Jul 16 05:21:08 2021 +0000 @@ -2179,6 +2179,9 @@ // Allocate the current brightness array outLevel = new uint8_t[numOutputs]; + // initialize all brightness levels to 0 (off) + memset(outLevel, 0, numOutputs); + // allocate the LedWiz output state arrays wizOn = new uint8_t[numOutputs]; wizVal = new uint8_t[numOutputs];