extend power statemachine

This commit is contained in:
2022-01-02 18:50:22 +01:00
parent 7509858aa4
commit c340ab9d2a
8 changed files with 178 additions and 39 deletions

View File

@@ -105,6 +105,14 @@ void initAudio()
void setAudioState(bool state)
{
audioState = state;
if (state)
{
digitalWrite(DAC_SDMODE, HIGH);
}
else
{
digitalWrite(DAC_SDMODE, LOW);
}
log_i("set Audio state %d", state);
}