Skip to content

Commit

Permalink
Merge pull request #738 from Brumi-2021/Extending_previous_ghost_sign…
Browse files Browse the repository at this point in the history
…al_interference_c/m_in_all_RX_after_using_Replay_App

(MINOR IMPROV Replay App) - Extending previous  "ghost interf. signal" c/m to Replay App
  • Loading branch information
gullradriel committed Oct 30, 2022
2 parents 2c3f8e9 + e8e9847 commit aa778e5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions firmware/application/apps/replay_app.cpp
Expand Up @@ -26,7 +26,7 @@

#include "ui_fileman.hpp"
#include "io_file.hpp"

#include "cpld_update.hpp"
#include "baseband_api.hpp"
#include "portapack.hpp"
#include "portapack_persistent_memory.hpp"
Expand Down Expand Up @@ -258,7 +258,12 @@ ReplayAppView::ReplayAppView(

ReplayAppView::~ReplayAppView() {
radio::disable();
baseband::shutdown();

display.fill_rectangle({ 0,0,240, 320 },Color::black()); //Solving sometimes visible bottom waterfall artifacts, clearing all LCD pixels.
chThdSleepMilliseconds(40); // (that happened sometimes if we interrupt the waterfall play at the beggining of the play around 25% and exit )
hackrf::cpld::load_sram_no_verify(); // to leave all RX reception ok, without "ghost interference signal problem" at the exit .

baseband::shutdown(); // better this function at the end, after load_sram(). If not , sometimes produced hang up (now not , it is ok).
}

void ReplayAppView::on_hide() {
Expand Down

0 comments on commit aa778e5

Please sign in to comment.