Project: enum cast fix. Makefile: blackmagic rule in global makefile (#819)

This commit is contained in:
あく
2021-11-15 22:55:25 +03:00
committed by GitHub
parent 2e46ec36a7
commit 1571d4ec54
7 changed files with 14 additions and 10 deletions

View File

@@ -178,8 +178,9 @@ bool subghz_protocol_common_to_save_file(SubGhzProtocolCommon* instance, Flipper
FURI_LOG_E(SUBGHZ_PARSER_TAG, "Unable to add Protocol");
break;
}
uint32_t temp = instance->code_last_count_bit;
if(!flipper_file_write_uint32(
flipper_file, "Bit", (uint32_t*)&instance->code_last_count_bit, 1)) {
flipper_file, "Bit", &temp, 1)) {
FURI_LOG_E(SUBGHZ_PARSER_TAG, "Unable to add Bit");
break;
}