mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
subghz: smol fixes
This commit is contained in:
@@ -122,8 +122,16 @@ bool subghz_scene_decode_raw_next(SubGhz* subghz) {
|
||||
level_duration =
|
||||
subghz_file_encoder_worker_get_level_duration(subghz->decode_raw_file_worker_encoder);
|
||||
if(!level_duration_is_reset(level_duration)) {
|
||||
if(level_duration_is_wait(level_duration)) {
|
||||
FURI_LOG_W(TAG, "LD tells wait!");
|
||||
return true;
|
||||
}
|
||||
bool level = level_duration_get_level(level_duration);
|
||||
uint32_t duration = level_duration_get_duration(level_duration);
|
||||
if(duration > 1000000) {
|
||||
FURI_LOG_E(TAG, "LD came with overflow: %ld", duration);
|
||||
return true;
|
||||
}
|
||||
subghz_receiver_decode(receiver, level, duration);
|
||||
} else {
|
||||
scene_manager_set_scene_state(
|
||||
|
||||
@@ -153,7 +153,7 @@ static bool subghz_protocol_faac_slh_gen_data(SubGhzProtocolEncoderFaacSLH* inst
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// to do OFEX mode
|
||||
// TODO: OFEX mode
|
||||
instance->generic.cnt += 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user