Skip to content

Commit

Permalink
fix #4844 (#4859)
Browse files Browse the repository at this point in the history
  • Loading branch information
caveman99 authored Sep 24, 2024
1 parent 10c51d8 commit 65104d5
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,13 @@ void setup()
buttonThread = new ButtonThread();
#endif

playStartMelody();
// only play start melody when role is not tracker or sensor
if (config.power.is_power_saving == true && (config.device.role == meshtastic_Config_DeviceConfig_Role_TRACKER ||
config.device.role == meshtastic_Config_DeviceConfig_Role_TAK_TRACKER ||
config.device.role == meshtastic_Config_DeviceConfig_Role_SENSOR))
LOG_DEBUG("Tracker/Sensor: Skipping start melody\n");
else
playStartMelody();

// fixed screen override?
if (config.display.oled != meshtastic_Config_DisplayConfig_OledType_OLED_AUTO)
Expand Down

0 comments on commit 65104d5

Please sign in to comment.