src/SpeakerMaintainer.cpp
//TODO:: LOCK IT HERE LIKE CLAMP!
: LOCK IT HERE LIKE CLAMP!
: LOCK IT HERE LIKE CLAMP!
void SpeakerMaintainer::AsyncSoundControl(SoundControlCommand command)
{
    if (_soundControlProcessing)
    {
        Serial.println("Is already processing! Can't do more! Please, wait a little.");
        return;
    }
    _currentCommand = command;
    xTaskCreate(
        AsyncSoundControlTask,          
        "AsyncSoundControlTask",        
        4000,            
        this,             
        1,                
        NULL);            
}
void SpeakerMaintainer :: AsyncSoundControl ( SoundControlCommand command ) { if ( _soundControlProcessing ) { Serial . println ( " " ) ; return ; } _currentCommand = command ; xTaskCreate ( AsyncSoundControlTask , " " , 4000 , this , 1 , NULL ) ; }
TODO:: LOCK IT HERE LIKE CLAMP!
TODO :: LOCK IT HERE LIKE CLAMP!
/* Task function. */ /* String with name of task. */ /* Stack size in bytes. */ /* Parameter passed as input of the task */ /* Priority of the task. */ /* Task handle. */