Skip to content

Commit

Permalink
Update serial handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Nov 28, 2020
1 parent 212da62 commit 91279e7
Show file tree
Hide file tree
Showing 7 changed files with 380 additions and 102 deletions.
2 changes: 1 addition & 1 deletion src/main.h
Expand Up @@ -23,7 +23,7 @@ SOFTWARE. */
#ifndef _MAIN_H
#define _MAIN_H

#include "serial_setup.h"
#include "serialhandler.h"
#include "config.h"
#include "execota.h"
#include "jsonconfig.h"
Expand Down
12 changes: 3 additions & 9 deletions src/ntp.cpp
Expand Up @@ -41,27 +41,21 @@ void setClock()
ESP.restart();
}
#ifdef LOG_LEVEL
// TODO:
//myPrintln();
Serial.println();
myPrintln();
#endif
Log.verbose(F("Re-requesting time hack."));
startSecs = time(nullptr);
cycle++;
}
#ifdef LOG_LEVEL
// TODO:
//myPrint(F("."));
Serial.print(F("."));
myPrint(F("."));
#endif
delay(1000);
yield();
}
blinker.detach();
#ifdef LOG_LEVEL
// TODO:
//myPrintln();
Serial.println();
myPrintln();
#endif
lastNTPUpdate = millis();
Log.notice(F("NTP time set." CR));
Expand Down
4 changes: 1 addition & 3 deletions src/ntp.h
Expand Up @@ -31,9 +31,7 @@ SOFTWARE. */

#include "config.h"
#include "tools.h"
#include "serial_setup.h"
// TODO:
// #include "serialhandler.h"
#include "serialhandler.h"
#include <Ticker.h>
#include <ArduinoLog.h>

Expand Down
53 changes: 0 additions & 53 deletions src/serial_setup.cpp

This file was deleted.

36 changes: 0 additions & 36 deletions src/serial_setup.h

This file was deleted.

0 comments on commit 91279e7

Please sign in to comment.