mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-02-04 08:55:21 -05:00
Remove SD card statuc handler in ReceiverView.
Wasn't doing anything useful, and probably won't.
This commit is contained in:
parent
e9bf500bfc
commit
eb10532931
@ -29,7 +29,6 @@ using namespace portapack;
|
||||
|
||||
#include "ais_baseband.hpp"
|
||||
|
||||
#include "sd_card.hpp"
|
||||
#include "ff.h"
|
||||
|
||||
namespace ui {
|
||||
@ -498,16 +497,6 @@ ReceiverView::~ReceiverView() {
|
||||
receiver_model.disable();
|
||||
}
|
||||
|
||||
void ReceiverView::on_show() {
|
||||
sd_card_status_signal_token = sd_card::status_signal += [this](const sd_card::Status status) {
|
||||
this->on_sd_card_status(status);
|
||||
};
|
||||
}
|
||||
|
||||
void ReceiverView::on_hide() {
|
||||
sd_card::status_signal -= sd_card_status_signal_token;
|
||||
}
|
||||
|
||||
class ManchesterDecoder {
|
||||
public:
|
||||
struct DecodedSymbol {
|
||||
@ -832,14 +821,6 @@ private:
|
||||
SpectrumAnalysisModel model;
|
||||
};
|
||||
|
||||
void ReceiverView::on_sd_card_status(const sd_card::Status status) {
|
||||
if( status == sd_card::Status::Mounted ) {
|
||||
// TODO: Something?
|
||||
} else {
|
||||
// TODO: Indicate unmounted.
|
||||
}
|
||||
}
|
||||
|
||||
void ReceiverView::focus() {
|
||||
button_done.focus();
|
||||
}
|
||||
|
@ -364,9 +364,6 @@ public:
|
||||
|
||||
void focus() override;
|
||||
|
||||
void on_show() override;
|
||||
void on_hide() override;
|
||||
|
||||
private:
|
||||
ReceiverModel& receiver_model;
|
||||
|
||||
@ -476,9 +473,6 @@ private:
|
||||
void on_packet_ais(const AISPacketMessage& message);
|
||||
void on_packet_tpms(const TPMSPacketMessage& message);
|
||||
void on_packet_ert(const ERTPacketMessage& message);
|
||||
void on_sd_card_status(const sd_card::Status status);
|
||||
|
||||
SignalToken sd_card_status_signal_token;
|
||||
};
|
||||
|
||||
} /* namespace ui */
|
||||
|
Loading…
x
Reference in New Issue
Block a user