|
@@ -155,7 +155,7 @@ static bool
|
|
|
break;
|
|
break;
|
|
|
|
|
|
|
|
default:
|
|
default:
|
|
|
- furi_crash(TAG " unknown protocol.");
|
|
|
|
|
|
|
+ FURI_LOG_E(TAG, "Invalid bits count");
|
|
|
return false;
|
|
return false;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|
|
@@ -224,7 +224,7 @@ bool subghz_protocol_encoder_chamb_code_deserialize(void* context, FlipperFormat
|
|
|
flipper_format_read_uint32(
|
|
flipper_format_read_uint32(
|
|
|
flipper_format, "Repeat", (uint32_t*)&instance->encoder.repeat, 1);
|
|
flipper_format, "Repeat", (uint32_t*)&instance->encoder.repeat, 1);
|
|
|
|
|
|
|
|
- subghz_protocol_encoder_chamb_code_get_upload(instance);
|
|
|
|
|
|
|
+ if(!subghz_protocol_encoder_chamb_code_get_upload(instance)) break;
|
|
|
instance->encoder.is_running = true;
|
|
instance->encoder.is_running = true;
|
|
|
|
|
|
|
|
res = true;
|
|
res = true;
|