Booster is turning off when it shouldn't

I have the below linked config, that when the saber is running works perfectly. Within seconds of deactivating the main blade and audio ends, I see a serial message saying “booster off” then all the accent pixels go dark. The saber is not asleep as it responds to a swing on or button press as it should.
What is wrong in the config or anywhere else that may cause this?

PasteBin Config Link

Serial Monitor Output from an on command followed by an off command.

Battery voltage: 4.02
Ignition.
unit = 0 vol = 0.00, Playing ANI3/hum.wav
channels: 1 rate: 44100 bits: 16
unit = 1 vol = 0.50, Playing ANI3/out/out4.wav
channels: 1 rate: 44100 bits: 16
humstart: 1700
unit = 3 vol = 0.00, Playing ANI3/swingl/swingl2.wav
channels: 1 rate: 44100 bits: 16
unit = 2 vol = 0.00, Playing ANI3/swingh/swingh2.wav
channels: 1 rate: 44100 bits: 16
Motion chip ... DISPLAY WAKEUP
I2C init..
106 found.
Display initialized.
Playing ANI3/swingl/swingl2.wav
channels: 1 rate: 44100 bits: 16
unit = 1 vol = 0.50, Playing ANI3/in/in2.wav
channels: 1 rate: 44100 bits: 16
No sounds found: pstoff
Amplifier off.
Unmounting SD Card.
Time = 3000. PLI_OFF_TIME expired.
DISPLAY SLEEP
Booster off.

Added note. I have tried OS 7.15, 7.14, and 7.10. All have the same issue.

It almost seems like it is ignoring the “SHARED_POWER_PINS” define?

Continued troubleshooting.

If I remove enable OLED define (ENABLE_SSD1306), the accents are working fine and the booster does not turn off until the timeout set in the config is met.

Thanks for reporting this. Turns out to be a bug in the OLED code.

Quick fix is to replace this line:

with:

     if (on_) *on = true;

Please let me know if this helps.

That change looks to have worked. The OLED shut off with a serial monitor for it, but all the accents stayed on.

Thnk you Prof.

1 Like