|
|
@@ -20,8 +20,8 @@ void render_view_settings(Canvas *const canvas, ProtoViewApp *app) {
|
|
|
canvas_set_font(canvas, FontSecondary);
|
|
|
canvas_draw_str(canvas,10,61,"Use up and down to modify");
|
|
|
|
|
|
- if (app->txrx->debug_direct_sampling)
|
|
|
- canvas_draw_str(canvas,3,52,"(DEBUG direct sampling is ON)");
|
|
|
+ if (app->txrx->debug_timer_sampling)
|
|
|
+ canvas_draw_str(canvas,3,52,"(DEBUG timer sampling is ON)");
|
|
|
|
|
|
/* Show frequency. We can use big numbers font since it's just a number. */
|
|
|
if (app->current_view == ViewFrequencySettings) {
|
|
|
@@ -43,15 +43,16 @@ void process_input_settings(ProtoViewApp *app, InputEvent input) {
|
|
|
* modulation. */
|
|
|
app->frequency = subghz_setting_get_default_frequency(app->setting);
|
|
|
app->modulation = 0;
|
|
|
- } else if (input.type == InputTypeLong && input.key == InputKeyDown) {
|
|
|
+ } else if (0 && input.type == InputTypeLong && input.key == InputKeyDown) {
|
|
|
/* Long pressing to down switches between normal and debug
|
|
|
- * direct sampling mode. */
|
|
|
+ * timer sampling mode. NOTE: this feature is disabled for users,
|
|
|
+ * only useful for devs (if useful at all). */
|
|
|
|
|
|
/* We have to stop the previous sampling system. */
|
|
|
radio_rx_end(app);
|
|
|
|
|
|
/* Then switch mode and start the new one. */
|
|
|
- app->txrx->debug_direct_sampling = !app->txrx->debug_direct_sampling;
|
|
|
+ app->txrx->debug_timer_sampling = !app->txrx->debug_timer_sampling;
|
|
|
radio_begin(app);
|
|
|
radio_rx(app);
|
|
|
} else if (input.type == InputTypePress &&
|