mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-03-18 23:56:32 +03:00
formatting
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
|
||||
namespace uuid {
|
||||
|
||||
// added by proddy for EMS-ESP
|
||||
static uint64_t now_millis = 0;
|
||||
|
||||
// returns system uptime in seconds
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
namespace uuid {
|
||||
|
||||
void loop() {
|
||||
set_uptime(); // added by proddy
|
||||
set_uptime();
|
||||
}
|
||||
|
||||
} // namespace uuid
|
||||
|
||||
@@ -102,8 +102,8 @@ void loop();
|
||||
*/
|
||||
uint64_t get_uptime_ms();
|
||||
|
||||
uint32_t get_uptime(); // added by proddy for EMS-ESP
|
||||
uint32_t get_uptime_sec(); // added by proddy for EMS-ESP
|
||||
uint32_t get_uptime();
|
||||
uint32_t get_uptime_sec();
|
||||
|
||||
void set_uptime();
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@ void Shell::display_prompt() {
|
||||
std::string context = context_text();
|
||||
|
||||
print(prompt_prefix());
|
||||
// colors added by proddy
|
||||
if (!hostname.empty()) {
|
||||
print(COLOR_BRIGHT_GREEN);
|
||||
print(COLOR_BOLD_ON);
|
||||
@@ -78,7 +77,6 @@ void Shell::display_prompt() {
|
||||
print(COLOR_BOLD_ON);
|
||||
print(context);
|
||||
print(COLOR_RESET);
|
||||
// print(' ');
|
||||
}
|
||||
print(prompt_suffix());
|
||||
print(' ');
|
||||
|
||||
@@ -365,7 +365,7 @@ bool SyslogService::can_transmit() {
|
||||
#endif
|
||||
|
||||
if (!emsesp::EMSESP::system_.network_connected()) {
|
||||
return false; // added by proddy. Check Ethernet
|
||||
return false;
|
||||
}
|
||||
|
||||
const uint64_t now = uuid::get_uptime_ms();
|
||||
|
||||
Reference in New Issue
Block a user