Merge pull request #13773 from s-hadinger/berry_read_sensors_warning

Berry fix warning in `tasmota.read_sensors()`
This commit is contained in:
s-hadinger 2021-11-22 20:06:45 +01:00 committed by GitHub
commit 81199879ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -555,6 +555,7 @@ extern "C" {
if (top >= 2) {
sensor_display = be_tobool(vm, 2);
}
be_pop(vm, top); // clear stack to avoid `Error be_top is non zero=1` errors
ResponseClear();
if (MqttShowSensor(sensor_display)) {
// return string