mirror of
https://protopirate.net/ProtoPirate/ProtoPirate.git
synced 2026-09-30 19:27:54 +00:00
Speed up hopper some more, make UI faster!
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user