Update i2s_audio_speaker.cppi2s_audio/speaker: Fix fallthrough compiler warning (#7167)

This commit is contained in:
Mimoja 2024-08-06 13:17:02 +02:00 committed by GitHub
parent 9188836f70
commit 455df35e50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -233,6 +233,7 @@ void I2SAudioSpeaker::loop() {
switch (this->state_) { switch (this->state_) {
case speaker::STATE_STARTING: case speaker::STATE_STARTING:
this->start_(); this->start_();
[[fallthrough]];
case speaker::STATE_RUNNING: case speaker::STATE_RUNNING:
case speaker::STATE_STOPPING: case speaker::STATE_STOPPING:
this->watch_(); this->watch_();