mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-02-20 07:18:32 +00:00
WS: add bat status
This commit is contained in:
parent
8a785993ed
commit
7aa6716892
1 changed files with 1 additions and 1 deletions
|
@ -101,7 +101,7 @@ void ws_protocol_decoder_wendox_reset(void* context) {
|
||||||
*/
|
*/
|
||||||
static void ws_protocol_wendox_remote_controller(WSBlockGeneric* instance) {
|
static void ws_protocol_wendox_remote_controller(WSBlockGeneric* instance) {
|
||||||
instance->id = (instance->data >> 4) & 0xFF;
|
instance->id = (instance->data >> 4) & 0xFF;
|
||||||
instance->battery_low = WS_NO_BATT;
|
instance->battery_low = (instance->data >> 5) & 1;
|
||||||
instance->channel = WS_NO_CHANNEL;
|
instance->channel = WS_NO_CHANNEL;
|
||||||
|
|
||||||
if(((instance->data >> 22) & 1)) {
|
if(((instance->data >> 22) & 1)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue