Skip to content

Commit

Permalink
Poprawa warunkowania dla SUPLA_CHANNELTYPE_HUMIDITYSENSOR
Browse files Browse the repository at this point in the history
  • Loading branch information
krycha88 committed Sep 26, 2021
1 parent be5cacb commit cd68c3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/SuplaDevice/src/supla/condition.cpp
Expand Up @@ -46,6 +46,7 @@ void Supla::Condition::handleAction(int event, int action) {
value = source->getChannel()->getValueInt64();
break;
case SUPLA_CHANNELTYPE_HUMIDITYANDTEMPSENSOR:
case SUPLA_CHANNELTYPE_HUMIDITYSENSOR:
value = useAlternativeMeasurement
? source->getChannel()->getValueDoubleSecond()
: source->getChannel()->getValueDoubleFirst();
Expand All @@ -68,6 +69,7 @@ void Supla::Condition::handleAction(int event, int action) {
isValid = value >= -273;
break;
case SUPLA_CHANNELTYPE_HUMIDITYANDTEMPSENSOR:
case SUPLA_CHANNELTYPE_HUMIDITYSENSOR:
isValid = useAlternativeMeasurement ? value >= 0 : value >= -273;
break;
}
Expand Down
2 changes: 1 addition & 1 deletion platformio.ini
Expand Up @@ -31,7 +31,7 @@ build_flags =

-D ATOMIC_FS_UPDATE
-D BEARSSL_SSL_BASIC
-D BUILD_VERSION='"GUI-Generic 4.1.9"'
-D BUILD_VERSION='"GUI-Generic 4.1.10"'
;-D DEFAULT_TEMPLATE_BOARD=19
-D SUPLA_ENABLE_GUI
;-D SUPLA_ENABLE_SSL
Expand Down

0 comments on commit cd68c3f

Please sign in to comment.