remove test cmd, introduce resources to cmdServer
This commit is contained in:
@ -1,14 +1,12 @@
|
||||
#include "ThermometerPro.h"
|
||||
|
||||
#include "cmd.h"
|
||||
#include "test.h"
|
||||
#include "uptime.h"
|
||||
#include "thermometer.h"
|
||||
#include "Config.h"
|
||||
|
||||
|
||||
static CmdServer cmdServer(&Serial);
|
||||
static TestCmd testCmd;
|
||||
static ConfigInvalidateCmd configInvalidateCmd;
|
||||
static Uptime uptime;
|
||||
static Thermometer thermometer;
|
||||
@ -16,7 +14,6 @@ static Thermometer thermometer;
|
||||
|
||||
void setup() {
|
||||
cmdServer.begin();
|
||||
testCmd.registerYourself(&cmdServer);
|
||||
configInvalidateCmd.registerYourself(&cmdServer);
|
||||
uptime.begin(&cmdServer);
|
||||
thermometer.begin(&cmdServer);
|
||||
|
Reference in New Issue
Block a user