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:
Andreas Frisch 2024-07-18 16:58:50 +02:00 committed by Jesse Hills
parent 584334fa15
commit a0ab353c07

View file

@ -63,6 +63,8 @@ void Jsnsr04tComponent::check_buffer_() {
case AJ_SR04M: case AJ_SR04M:
checksum = this->buffer_[1] + this->buffer_[2]; checksum = this->buffer_[1] + this->buffer_[2];
break; break;
default:
return;
} }
if (this->buffer_[3] == checksum) { if (this->buffer_[3] == checksum) {