diff options
author | Ryan Klaassen <ryan.klaassen@multitech.com> | 2016-08-18 11:44:12 -0500 |
---|---|---|
committer | Ryan Klaassen <ryan.klaassen@multitech.com> | 2016-08-18 11:44:12 -0500 |
commit | 805e501c3d15b32491fd478150cf286dd9834757 (patch) | |
tree | 66fbbfbf01d7cf38c8d385d5d04fec4b4f0a2f66 | |
parent | 22ac88e687d71b2a8a558ba90fab3ca570600819 (diff) | |
download | mtdot-box-evb-factory-firmware-805e501c3d15b32491fd478150cf286dd9834757.tar.gz mtdot-box-evb-factory-firmware-805e501c3d15b32491fd478150cf286dd9834757.tar.bz2 mtdot-box-evb-factory-firmware-805e501c3d15b32491fd478150cf286dd9834757.zip |
Replace main.cpp
-rw-r--r-- | main.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -61,7 +61,7 @@ osThreadId main_id; ButtonHandler* buttons; // LoRa controller -LoRaHandler* lora; +LoRaHandler* lora_handler; mDot* dot; // GPS @@ -100,7 +100,7 @@ int main() { main_id = Thread::gettid(); buttons = new ButtonHandler(main_id); dot = mDot::getInstance(); - lora = new LoRaHandler(main_id); + lora_handler = new LoRaHandler(main_id); gps = new GPSPARSER(&gps_serial, led_cont); sensors = new SensorHandler(); @@ -108,12 +108,12 @@ int main() { MTSLog::setLogLevel(MTSLog::TRACE_LEVEL); - modeJoin = new ModeJoin(lcd, buttons, dot, lora, gps, sensors); - modeSingle = new ModeSingle(lcd, buttons, dot, lora, gps, sensors); - modeSweep = new ModeSweep(lcd, buttons, dot, lora, gps, sensors); - modeDemo = new ModeDemo(lcd, buttons, dot, lora, gps, sensors); - modeConfig = new ModeConfig(lcd, buttons, dot, lora, gps, sensors); - modeGps = new ModeGps(lcd, buttons, dot, lora, gps, sensors, modeJoin); + modeJoin = new ModeJoin(lcd, buttons, dot, lora_handler, gps, sensors); + modeSingle = new ModeSingle(lcd, buttons, dot, lora_handler, gps, sensors); + modeSweep = new ModeSweep(lcd, buttons, dot, lora_handler, gps, sensors); + modeDemo = new ModeDemo(lcd, buttons, dot, lora_handler, gps, sensors); + modeConfig = new ModeConfig(lcd, buttons, dot, lora_handler, gps, sensors); + modeGps = new ModeGps(lcd, buttons, dot, lora_handler, gps, sensors, modeJoin); osDelay(1000); logInfo("%sGPS detected", gps->gpsDetected() ? "" : "no "); @@ -164,7 +164,7 @@ void mainMenu() { // reset session between modes dot->resetNetworkSession(); - lora->resetActivityLed(); + lora_handler->resetActivityLed(); LayoutScrollSelect menu(lcd, items, product, menu_strings[0]); menu.display(); |