Skip to content

Commit 3a5a6b6

Browse files
committed
remove logger
1 parent 33295d3 commit 3a5a6b6

File tree

7 files changed

+7
-92
lines changed

7 files changed

+7
-92
lines changed

src/logger.cpp

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/logger.h

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/main.ino

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
#include "settings_server.h"
6-
#include "logger.h"
76
#include "button.h"
87
#include "led.h"
98
#include "settings.h"
@@ -19,15 +18,15 @@ void connect(const char *ssid, const char *password) {
1918
while(ThetaS.status() != WL_CONNECTED) {
2019
delay(300);
2120
led.toggle();
22-
Logger.debug(".");
21+
Serial.print(".");
2322
}
2423
}
2524

2625
// Entry Point
2726

2827
void setup() {
29-
Logger.begin(LogLevel::DEBUG, 115200);
30-
Logger.debug("theta-remote-release");
28+
Serial.begin(115200);
29+
Serial.println("theta-remote-release");
3130

3231
if(button.isPressed()) {
3332
led.on();

src/settings.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
#include "settings.h"
6-
#include "logger.h"
76
#include <EEPROM.h>
87

98
// public
@@ -13,11 +12,9 @@ void SettingsClass::load() {
1312

1413
EEPROM.begin(128);
1514
if (verify() != 0) {
16-
Logger.debug("No saved data.");
1715
strcpy(ssid, "");
1816
strcpy(password, "");
1917
} else {
20-
Logger.debug("Loading saved data.");
2118
read(ssid);
2219
read(password);
2320
}

src/settings_server.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@
33
*/
44

55
#include "settings_server.h"
6-
#include "logger.h"
76
#include "settings.h"
8-
97
#include <string.h>
108

119
// public

src/settings_server.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
#include <DNSServer.h>
99
#include <ESP8266HTTPUpdateServer.h>
10-
#include <ESP8266WebServer.h>
1110
#include <ESP8266WiFi.h>
11+
#include <ESP8266WebServer.h>
1212

1313
class SettingsServerClass {
1414
public:

src/theta_s.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
#include "theta_s.h"
6-
#include "logger.h"
76
#include "osc_command.h"
87
#include <ESP8266HTTPClient.h>
98
#include <ESP8266WiFi.h>
@@ -38,7 +37,7 @@ void ThetaSClass::connect(const char *ssid, const char *password) {
3837
wl_status_t ThetaSClass::status() { return WiFi.status(); }
3938

4039
int ThetaSClass::startSession() {
41-
Logger.debug("ThetaS::startSession");
40+
Serial.println("ThetaS::startSession");
4241

4342
disableUpdateSessionEvent();
4443

@@ -58,7 +57,7 @@ int ThetaSClass::startSession() {
5857
}
5958

6059
int ThetaSClass::updateSession() {
61-
Logger.debug("ThetaS::updateSession");
60+
Serial.println("ThetaS::updateSession");
6261

6362
disableUpdateSessionEvent();
6463

@@ -118,7 +117,7 @@ int ThetaSClass::handle() {
118117
// private
119118

120119
int ThetaSClass::executeSimpleCommand(const char *name) {
121-
Logger.debug(name);
120+
Serial.println(name);
122121

123122
OSCCommand cmd(name);
124123
cmd.addParameter("sessionId", sessionID);

0 commit comments

Comments
 (0)