Skip to content

Commit

Permalink
Add SayTheBatteryLevelIs() (profezzorn#297)
Browse files Browse the repository at this point in the history
* add  SayTheBatteryLevelIs()

* BC_buttons - SayTheBatteryLevelIs()
  • Loading branch information
NoSloppy authored Oct 23, 2021
1 parent 78df09a commit 19b4b61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions props/saber_BC_buttons.h
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ class SaberBCButtons : public PROP_INHERIT_PREFIX PropBase {
// Spoken Battery Level in volts
case EVENTID(BUTTON_POWER, EVENT_THIRD_SAVED_CLICK_SHORT, MODE_OFF):
if (!mode_volume_) {
sound_library_.SayBatteryLevel();
sound_library_.SayTheBatteryLevelIs();
sound_library_.SayNumber(battery_monitor.battery(), SAY_DECIMAL);
sound_library_.SayVolts();
STDOUT.println(battery_monitor.battery());
Expand All @@ -726,7 +726,7 @@ class SaberBCButtons : public PROP_INHERIT_PREFIX PropBase {
// Spoken Battery Level in percentage
case EVENTID(BUTTON_POWER, EVENT_THIRD_HELD, MODE_OFF):
if (!mode_volume_) {
sound_library_.SayBatteryLevel();
sound_library_.SayTheBatteryLevelIs();
sound_library_.SayNumber(battery_monitor.battery_percent(), SAY_WHOLE);
sound_library_.SayPercent();
STDOUT.println(battery_monitor.battery_percent());
Expand Down
1 change: 1 addition & 0 deletions sound/sound_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ class SoundLibrary {
void SayAuto() { Play("mauto.wav"); }
void SayBaseColor() { Play("mbase.wav"); }
void SayBatteryLevel() { Play("mbatt.wav"); }
void SayTheBatteryLevelIs() { Play("battlevl.wav"); }
void SayBlastColor() { Play("mblast.wav"); }
void SayCancel() { Play("mcancel.wav"); }
void SayBeginChoreography() { Play("chreobgn.wav"); }
Expand Down

0 comments on commit 19b4b61

Please sign in to comment.