mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-02-10 03:38:50 -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 "ais_baseband.hpp"
|
||||||
|
|
||||||
#include "sd_card.hpp"
|
|
||||||
#include "ff.h"
|
#include "ff.h"
|
||||||
|
|
||||||
namespace ui {
|
namespace ui {
|
||||||
@ -498,16 +497,6 @@ ReceiverView::~ReceiverView() {
|
|||||||
receiver_model.disable();
|
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 {
|
class ManchesterDecoder {
|
||||||
public:
|
public:
|
||||||
struct DecodedSymbol {
|
struct DecodedSymbol {
|
||||||
@ -832,14 +821,6 @@ private:
|
|||||||
SpectrumAnalysisModel model;
|
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() {
|
void ReceiverView::focus() {
|
||||||
button_done.focus();
|
button_done.focus();
|
||||||
}
|
}
|
||||||
|
@ -364,9 +364,6 @@ public:
|
|||||||
|
|
||||||
void focus() override;
|
void focus() override;
|
||||||
|
|
||||||
void on_show() override;
|
|
||||||
void on_hide() override;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
ReceiverModel& receiver_model;
|
ReceiverModel& receiver_model;
|
||||||
|
|
||||||
@ -476,9 +473,6 @@ private:
|
|||||||
void on_packet_ais(const AISPacketMessage& message);
|
void on_packet_ais(const AISPacketMessage& message);
|
||||||
void on_packet_tpms(const TPMSPacketMessage& message);
|
void on_packet_tpms(const TPMSPacketMessage& message);
|
||||||
void on_packet_ert(const ERTPacketMessage& 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 */
|
} /* namespace ui */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user