fix add manually and fix check

This commit is contained in:
MX
2024-06-17 15:33:08 +03:00
parent b48c6dd7f8
commit 2a163db3ad
2 changed files with 17 additions and 4 deletions

View File

@@ -81,11 +81,11 @@ bool subghz_txrx_gen_data_protocol_and_te(
ret = true;
}
}
if(ret == SubGhzProtocolStatusOk) {
if(ret) {
uint32_t guard_time = 30;
if(!flipper_format_update_uint32(
instance->fff_data, "Guard_time", (uint32_t*)&guard_time, 1)) {
ret = SubGhzProtocolStatusErrorParserOthers;
ret = false;
FURI_LOG_E(TAG, "Unable to update Guard_time");
}
}