GameWithPixels / DiceFirmware

Pixels dice firmware code.
MIT License
15 stars 1 forks source link

Bypass accelerometer wake-up configuration when in validation mode #16

Closed kylzrnr closed 2 years ago

kylzrnr commented 2 years ago

I added a conditional to the onPowerEvent callback (accelerometer.cpp::687) to skip the wake-up configuration when in validation mode. I also added a log message to indicate that this is happening. Let me know if you have any concerns.

kylzrnr commented 2 years ago

Also, I formatted the file to ensure correct indentations. While this seemed like a good idea, it did make the changes on github appear somewhat convoluted. Sorry about that!