This commit is contained in:
Glenn Arens
2019-03-20 20:23:46 +01:00
parent 6cca18ce81
commit bf5165f446
3 changed files with 24 additions and 16 deletions

View File

@@ -72,6 +72,14 @@ extern "C" {
#define COLOR_MAGENTA "\x1B[0;35m" #define COLOR_MAGENTA "\x1B[0;35m"
#define COLOR_CYAN "\x1B[0;36m" #define COLOR_CYAN "\x1B[0;36m"
#define COLOR_WHITE "\x1B[0;37m" #define COLOR_WHITE "\x1B[0;37m"
#define COLOR_BRIGHT_BLACK "\x1B[0;90m"
#define COLOR_BRIGHT_RED "\x1B[0;91m"
#define COLOR_BRIGHT_GREEN "\x1B[0;92m"
#define COLOR_BRIGHT_YELLOW "\x1B[0;99m"
#define COLOR_BRIGHT_BLUE "\x1B[0;94m"
#define COLOR_BRIGHT_MAGENTA "\x1B[0;95m"
#define COLOR_BRIGHT_CYAN "\x1B[0;96m"
#define COLOR_BRIGHT_WHITE "\x1B[0;97m"
#define COLOR_BOLD_ON "\x1B[1m" #define COLOR_BOLD_ON "\x1B[1m"
#define COLOR_BOLD_OFF "\x1B[22m" // fixed by Scott Arlott #define COLOR_BOLD_OFF "\x1B[22m" // fixed by Scott Arlott

View File

@@ -34,7 +34,7 @@ MyESP::MyESP() {
_helpProjectCmds = NULL; _helpProjectCmds = NULL;
_helpProjectCmds_count = 0; _helpProjectCmds_count = 0;
_use_serial = false; _use_serial = true;
_mqtt_host = NULL; _mqtt_host = NULL;
_mqtt_password = NULL; _mqtt_password = NULL;
_mqtt_username = NULL; _mqtt_username = NULL;

View File

@@ -226,7 +226,7 @@ class MyESP {
char * _boottime; char * _boottime;
bool _suspendOutput; bool _suspendOutput;
bool _use_serial; bool _use_serial;
void _printBuildTime(unsigned long rawTime); void _printBuildTime(unsigned long unix);
// load average (0..100) // load average (0..100)
void _calculateLoad(); void _calculateLoad();