fix readings update

This commit is contained in:
Sebastian
2021-05-29 23:06:00 +02:00
parent 26b0c97c8f
commit 57b96d7fd8
2 changed files with 6 additions and 6 deletions

View File

@ -346,11 +346,11 @@ sub ErrorHandling {
my ($detection_area) = ($data =~ /dist'>(\d*)/g);
my ($detection_sensitivity) = ($data =~ /delay'>(\d*)/g);
my ($eject_delay) = ($data =~ /pdelay'>(\d*)/g);
readingsBulkUpdateIfChanged($hash, 'led_brightness', $led_brightness, 1);
readingsBulkUpdateIfChanged($hash, 'eject_power', $eject_power, 1);
readingsBulkUpdateIfChanged($hash, 'detection_area', $detection_area, 1);
readingsBulkUpdateIfChanged($hash, 'detection_sensitivity', $detection_sensitivity, 1);
readingsBulkUpdateIfChanged($hash, 'eject_delay', $eject_delay, 1);
readingsBulkUpdateIfChanged($hash, 'led_brightness', $led_brightness);
readingsBulkUpdateIfChanged($hash, 'eject_power', $eject_power);
readingsBulkUpdateIfChanged($hash, 'detection_area', $detection_area);
readingsBulkUpdateIfChanged($hash, 'detection_sensitivity', $detection_sensitivity);
readingsBulkUpdateIfChanged($hash, 'eject_delay', $eject_delay);
}
return;