mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-24 05:34:45 -07:00
WS: fix Nexus-TH potocol
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <furi.h>
|
||||
#include <furi_hal.h>
|
||||
|
||||
#define WS_VERSION_APP "0.5"
|
||||
#define WS_VERSION_APP "0.5.1"
|
||||
#define WS_DEVELOPED "SkorP"
|
||||
#define WS_GITHUB "https://github.com/flipperdevices/flipperzero-firmware"
|
||||
|
||||
|
||||
@@ -135,6 +135,10 @@ static void ws_protocol_nexus_th_remote_controller(WSBlockGeneric* instance) {
|
||||
}
|
||||
|
||||
instance->humidity = instance->data & 0xFF;
|
||||
if(instance->humidity > 95)
|
||||
instance->humidity = 95;
|
||||
else if(instance->humidity < 20)
|
||||
instance->humidity = 20;
|
||||
}
|
||||
|
||||
void ws_protocol_decoder_nexus_th_feed(void* context, bool level, uint32_t duration) {
|
||||
|
||||
Reference in New Issue
Block a user