mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Trying to fix button issues in sbughz remote
This commit is contained in:
@@ -137,6 +137,7 @@ bool subghz_view_transmitter_input(InputEvent* event, void* context) {
|
||||
true);
|
||||
|
||||
if(can_be_sent && event->key == InputKeyOk && event->type == InputTypePress) {
|
||||
subghz_custom_btn_set(0);
|
||||
with_view_model(
|
||||
subghz_transmitter->view,
|
||||
SubGhzViewTransmitterModel * model,
|
||||
|
||||
@@ -354,6 +354,8 @@ bool subghz_remote_key_load(
|
||||
|
||||
bool res = false;
|
||||
|
||||
subghz_custom_btn_set(0);
|
||||
|
||||
do {
|
||||
// load frequency from file
|
||||
if(!flipper_format_read_uint32(fff_file, "Frequency", &preset->frequency, 1)) {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "custom_btn.h"
|
||||
|
||||
static uint8_t custom_btn_id;
|
||||
static uint8_t custom_btn_original;
|
||||
static uint8_t custom_btn_id = 0;
|
||||
static uint8_t custom_btn_original = 0;
|
||||
static uint8_t custom_btn_max_btns = 0;
|
||||
|
||||
void subghz_custom_btn_set(uint8_t b) {
|
||||
|
||||
Reference in New Issue
Block a user