mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
SubGhz: Fix add manual Alutech AT 4N
This commit is contained in:
@@ -308,8 +308,8 @@ bool subghz_protocol_alutech_at_4n_create_data(
|
|||||||
instance->generic.data_count_bit = 72;
|
instance->generic.data_count_bit = 72;
|
||||||
bool res = subghz_protocol_alutech_at_4n_gen_data(instance, btn);
|
bool res = subghz_protocol_alutech_at_4n_gen_data(instance, btn);
|
||||||
if(res) {
|
if(res) {
|
||||||
res = subghz_block_generic_serialize(&instance->generic, flipper_format, preset);
|
if((subghz_block_generic_serialize(&instance->generic, flipper_format, preset) !=
|
||||||
if((res == SubGhzProtocolStatusOk) &&
|
SubGhzProtocolStatusOk) ||
|
||||||
!flipper_format_write_uint32(flipper_format, "CRC", &instance->crc, 1)) {
|
!flipper_format_write_uint32(flipper_format, "CRC", &instance->crc, 1)) {
|
||||||
FURI_LOG_E(TAG, "Unable to add CRC");
|
FURI_LOG_E(TAG, "Unable to add CRC");
|
||||||
res = false;
|
res = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user