Speed up hopper some more, make UI faster!

This commit is contained in:
Leeroy
2026-09-29 22:27:55 +10:00
parent 17adbd8c3d
commit ee9e2d1cd3
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ bool protopirate_hopper_update(ProtoPirateApp* app) {
if(app->txrx->hopper_state == ProtoPirateHopperStateRunning) {
rssi = subghz_devices_get_rssi(app->txrx->radio_device);
if(rssi > -80.0f) {
if(rssi > -75.0f) {
app->txrx->hopper_timeout = 20;
app->txrx->hopper_state = ProtoPirateHopperStateRSSITimeOut;
return false;
+1 -5
View File
@@ -468,11 +468,7 @@ bool protopirate_scene_receiver_on_event(void* context, SceneManagerEvent event)
protopirate_scene_receiver_bind_rx_stack(app)) {
protopirate_rx(app, app->txrx->preset->frequency);
}
static uint8_t hopper_statusbar_tick = 0;
if(++hopper_statusbar_tick >= 8) {
hopper_statusbar_tick = 0;
protopirate_scene_receiver_update_statusbar(app);
}
protopirate_scene_receiver_update_statusbar(app);
}
}