mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-20 21:47:41 +00:00
POCSAG address filter now ignores alpha messages
Experimenting with FIFOs for replay...
This commit is contained in:
@@ -30,6 +30,7 @@
|
||||
class BufferExchange {
|
||||
public:
|
||||
BufferExchange(CaptureConfig* const config);
|
||||
BufferExchange(ReplayConfig* const config);
|
||||
~BufferExchange();
|
||||
|
||||
BufferExchange(const BufferExchange&) = delete;
|
||||
@@ -72,16 +73,25 @@ public:
|
||||
}
|
||||
|
||||
private:
|
||||
CaptureConfig* const config;
|
||||
//CaptureConfig* const config_capture;
|
||||
//ReplayConfig* const config_replay;
|
||||
FIFO<StreamBuffer*>* fifo_buffers_for_baseband { nullptr };
|
||||
FIFO<StreamBuffer*>* fifo_buffers_for_application { nullptr };
|
||||
Thread* thread { nullptr };
|
||||
static BufferExchange* obj;
|
||||
|
||||
enum {
|
||||
CAPTURE,
|
||||
REPLAY
|
||||
} direction { };
|
||||
|
||||
void check_fifo_isr() {
|
||||
if( !empty() ) {
|
||||
//if (!empty() && (direction == CAPTURE)) {
|
||||
if (!empty())
|
||||
wakeup_isr();
|
||||
}
|
||||
//} else if (!empty() && (direction == REPLAY)) {
|
||||
// wakeup_isr();
|
||||
//}
|
||||
}
|
||||
|
||||
void wakeup_isr() {
|
||||
|
Reference in New Issue
Block a user