mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
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) {
|
void CmndI2SConfig(void) {
|
||||||
|
if(!audio_i2s.Settings){
|
||||||
|
ResponseCmndChar_P(PSTR("no valid settings"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
tI2SSettings * cfg = audio_i2s.Settings;
|
tI2SSettings * cfg = audio_i2s.Settings;
|
||||||
|
|
||||||
// if (zigbee.init_phase) { ResponseCmndChar_P(PSTR(D_ZIGBEE_NOT_STARTED)); return; }
|
// if (zigbee.init_phase) { ResponseCmndChar_P(PSTR(D_ZIGBEE_NOT_STARTED)); return; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user