mirror of https://github.com/arendst/Tasmota.git
prevent crash with unconfigured audio (#21775)
This commit is contained in:
parent
e9fdbea091
commit
6673fb906b
|
@ -179,6 +179,10 @@ void (* const I2SAudio_Command[])(void) PROGMEM = {
|
|||
\*********************************************************************************************/
|
||||
|
||||
void CmndI2SConfig(void) {
|
||||
if(!audio_i2s.Settings){
|
||||
ResponseCmndChar_P(PSTR("no valid settings"));
|
||||
return;
|
||||
}
|
||||
tI2SSettings * cfg = audio_i2s.Settings;
|
||||
|
||||
// if (zigbee.init_phase) { ResponseCmndChar_P(PSTR(D_ZIGBEE_NOT_STARTED)); return; }
|
||||
|
|
Loading…
Reference in New Issue