start configuration stuff
This commit is contained in:
@ -2,12 +2,13 @@
|
||||
#include "defines.h"
|
||||
#include "config.h"
|
||||
#include "production.h"
|
||||
#include "configuration.h"
|
||||
|
||||
|
||||
// from config.cpp
|
||||
extern config_t myConfig;
|
||||
|
||||
bool productionMode = true;
|
||||
bool productionMode = false;
|
||||
|
||||
void setup() {
|
||||
pinMode(LED_BLUE, OUTPUT);
|
||||
@ -23,6 +24,8 @@ void setup() {
|
||||
|
||||
if (productionMode) {
|
||||
productionSetup();
|
||||
} else {
|
||||
configurationSetup();
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,5 +33,7 @@ void loop()
|
||||
{
|
||||
if (productionMode) {
|
||||
productionLoop();
|
||||
} else {
|
||||
configurationLoop();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user