mirror of
https://github.com/esphome/esphome.git
synced 2024-12-27 17:28:01 +01:00
jsn_sr04t component: RCWL-1655 code quality fix
Handle missing enumeration value by default case in switch statement though it is unreachable
This commit is contained in:
parent
584334fa15
commit
a0ab353c07
@ -63,6 +63,8 @@ void Jsnsr04tComponent::check_buffer_() {
|
||||
case AJ_SR04M:
|
||||
checksum = this->buffer_[1] + this->buffer_[2];
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
if (this->buffer_[3] == checksum) {
|
||||
|
Loading…
Reference in New Issue
Block a user