summaryrefslogtreecommitdiff
path: root/Mode/ModeConfig.h
diff options
context:
space:
mode:
authorMike Fiore <mfiore@multitech.com>2015-11-23 13:42:33 -0600
committerMike Fiore <mfiore@multitech.com>2015-11-23 13:42:33 -0600
commite1736be283e3da3df63e9d29c9382c076e59f80e (patch)
tree858e20d587cfd41925500e99660b3f321881ee43 /Mode/ModeConfig.h
parenta3494764b5837a15695445652b01310eeebd6449 (diff)
downloadmtdot-box-evb-factory-firmware-e1736be283e3da3df63e9d29c9382c076e59f80e.tar.gz
mtdot-box-evb-factory-firmware-e1736be283e3da3df63e9d29c9382c076e59f80e.tar.bz2
mtdot-box-evb-factory-firmware-e1736be283e3da3df63e9d29c9382c076e59f80e.zip
clean up after config, get things building again, update default configuration to match spec
Diffstat (limited to 'Mode/ModeConfig.h')
-rw-r--r--Mode/ModeConfig.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/Mode/ModeConfig.h b/Mode/ModeConfig.h
index ade3093..1192a8c 100644
--- a/Mode/ModeConfig.h
+++ b/Mode/ModeConfig.h
@@ -13,7 +13,7 @@ class ModeConfig : public Mode {
public:
- ModeConfig(DOGS102* lcd, mts::MTSSerial& serial, mDot* dot, ButtonHandler* buttons);
+ ModeConfig(DOGS102* lcd, ButtonHandler* buttons, mDot* dot, LoRaHandler* lora);
// Command error text...
static const char command_error[];
@@ -27,22 +27,9 @@ public:
private:
- static void idle(void const* args) {
- while (1)
- __WFI();
- }
-
- mts::MTSSerial& _serial;
- static mts::MTSSerial* _serialp;
-
- LayoutConfig _lc;
- ButtonHandler::ButtonEvent _be;
- ButtonHandler* _buttons;
- mDot* _dot;
- mDot::Mode _mode;
+ mts::MTSSerial _serial;
+ LayoutConfig _lc;
std::vector<Command*> _commands;
- Thread _idle_thread;
- bool _serial_up;
void addCommand(Command* cmd);