mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
SubGhz: Princeton protocol add custom guard time (#3671)
* SubGhz: Princeton protocol add custom guard time * SubGhz: fix type var * SubGhz: fix syntax * SubGhz: add define PRINCETON_GUARD_TIME_DEFALUT * Update princeton.c Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -80,6 +80,14 @@ SubGhzProtocolStatus subghz_txrx_gen_data_protocol_and_te(
|
||||
FURI_LOG_E(TAG, "Unable to update Te");
|
||||
}
|
||||
}
|
||||
if(ret == SubGhzProtocolStatusOk) {
|
||||
uint32_t guard_time = 30;
|
||||
if(!flipper_format_update_uint32(
|
||||
instance->fff_data, "Guard_time", (uint32_t*)&guard_time, 1)) {
|
||||
ret = SubGhzProtocolStatusErrorParserOthers;
|
||||
FURI_LOG_E(TAG, "Unable to update Guard_time");
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user