Skip to content

Add -fb/--fakebattery flag; -fh alone no longer fakes the BQ25895#535

Open
brickbots wants to merge 1 commit into
mainfrom
fakebattery-flag
Open

Add -fb/--fakebattery flag; -fh alone no longer fakes the BQ25895#535
brickbots wants to merge 1 commit into
mainfrom
fakebattery-flag

Conversation

@brickbots

Copy link
Copy Markdown
Owner

Summary

-fh/--fakehardware used to force has_bq25895 (and has_buzzer) so the fake battery monitor always ran — which put the rev-4 battery indicator in the title bar of every headless capture. Docs screenshots should show the baseline rev-3 UI (128x128, no battery indicator), so:

  • -fh alone now emulates rev-3 hardware: has_bq25895 stays off, no battery monitor, no battery icon.
  • New -fb/--fakebattery flag opts back into the rev-4 fake battery monitor (battery_fake is only imported when the flag is given, matching the real-hardware branch's probe-then-import pattern).
  • has_buzzer remains set under -fh; the sound process is already gated on real hardware so this changes nothing in dev.
  • Both flags documented in the dev guide's CLI-flags section.

Testing

  • ruff check / ruff format clean; smoke tests pass.
  • Ran headless from a clean worktree both ways and captured /api/screen:
    • -fh only: startup log shows no Battery process; title bar has no battery icon.
    • -fh -fb: Battery process spawns (Write: Battery); battery icon renders in the title bar.

🤖 Generated with Claude Code

-fh/--fakehardware used to force has_bq25895 (and has_buzzer) so the
fake battery monitor always ran, putting the rev-4 battery indicator
in every headless capture. Docs screenshots should show the baseline
rev-3 UI (128x128, no battery icon), so -fh now leaves has_bq25895
off and a new -fb/--fakebattery flag opts back into the fake battery
monitor for rev-4 work. has_buzzer stays set under -fh; the sound
process is already gated on real hardware.

Documented both flags in the dev guide.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant