start configuration stuff

This commit is contained in:
2022-12-18 18:08:39 +01:00
parent f4bcf7fc01
commit 4052bea374
4 changed files with 78 additions and 1 deletions

View File

@ -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();
}
}