do not store pointers, this just do not work
This commit is contained in:
@@ -30,27 +30,47 @@ const uint8_t pageSequence[TX_OLED_PAGE_COUNT] = {
|
||||
class TxOled {
|
||||
public:
|
||||
TxOled(void);
|
||||
void init(
|
||||
void init();
|
||||
void loop(
|
||||
volatile RadioState_t *radioState,
|
||||
RxDeviceState_t *rxDeviceState,
|
||||
TxDeviceState_t *txDeviceState,
|
||||
Tactile *button0,
|
||||
Tactile *button1
|
||||
);
|
||||
void loop(void);
|
||||
void page(int page);
|
||||
);
|
||||
void page(
|
||||
volatile RadioState_t *radioState,
|
||||
RxDeviceState_t *rxDeviceState,
|
||||
TxDeviceState_t *txDeviceState,
|
||||
int page
|
||||
);
|
||||
private:
|
||||
volatile RadioState_t *_radioState;
|
||||
RxDeviceState_t *_rxDeviceState;
|
||||
TxDeviceState_t *_txDeviceState;
|
||||
Tactile *_button0;
|
||||
Tactile *_button1;
|
||||
Adafruit_SSD1306 _display;
|
||||
void renderPageInit(void);
|
||||
void renderPageStats(void);
|
||||
void renderPagePwr(void);
|
||||
void renderPageBind(void);
|
||||
void renderPageMode(void);
|
||||
void renderPageInit(
|
||||
volatile RadioState_t *radioState,
|
||||
RxDeviceState_t *rxDeviceState,
|
||||
TxDeviceState_t *txDeviceState
|
||||
);
|
||||
void renderPageStats(
|
||||
volatile RadioState_t *radioState,
|
||||
RxDeviceState_t *rxDeviceState,
|
||||
TxDeviceState_t *txDeviceState
|
||||
);
|
||||
void renderPagePwr(
|
||||
volatile RadioState_t *radioState,
|
||||
RxDeviceState_t *rxDeviceState,
|
||||
TxDeviceState_t *txDeviceState
|
||||
);
|
||||
void renderPageBind(
|
||||
volatile RadioState_t *radioState,
|
||||
RxDeviceState_t *rxDeviceState,
|
||||
TxDeviceState_t *txDeviceState
|
||||
);
|
||||
void renderPageMode(
|
||||
volatile RadioState_t *radioState,
|
||||
RxDeviceState_t *rxDeviceState,
|
||||
TxDeviceState_t *txDeviceState
|
||||
);
|
||||
uint8_t _page = TX_PAGE_NONE;
|
||||
uint8_t _mainPageSequenceIndex = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user