Fmt and cleanup some "if"s in protocols

This commit is contained in:
MX
2023-05-10 22:56:56 +03:00
parent cca6606c78
commit 735fe31f3b
6 changed files with 11 additions and 20 deletions

View File

@@ -429,10 +429,8 @@ static bool subghz_protocol_encoder_alutech_at_4n_get_upload(
if((custom_btn_id == 0) && (original_btn_num != 0)) {
btn = original_btn_num;
}
//gen new key
if(subghz_protocol_alutech_at_4n_gen_data(instance, btn)) {
//ToDo if you need to add a callback to automatically update the data on the display
} else {
// Gen new key
if(!subghz_protocol_alutech_at_4n_gen_data(instance, btn)) {
return false;
}