Interim fix avoid using params before initialized

This is a Interim fix to avoid using params before initialized.

The Long term fix will be:
1) Not play the startup tone on start but allow tones to be generated from other invocations (i.e error conditions)
2) Add a command to tone alam to have it read a parameter, after parameter initialization, in the init script. If that parameter is on then sound the startup tone and further tones will be enabled. If it is off all further tones will be disabled.

The new parameter will not be of the class circuit breaker (not named ) as is is not an absolute control of the tone alarm.
This commit is contained in:
David Sidrane
2016-12-20 02:35:55 -10:00
committed by Lorenz Meier
parent f9da41fcf2
commit 4d17467590
+1 -1
View File
@@ -410,7 +410,7 @@ ToneAlarm::ToneAlarm() :
_user_tune(nullptr), _user_tune(nullptr),
_tune(nullptr), _tune(nullptr),
_next(nullptr), _next(nullptr),
_cbrk(CBRK_UNINIT) _cbrk(CBRK_OFF)
{ {
// enable debug() calls // enable debug() calls
//_debug_enabled = true; //_debug_enabled = true;