formatting

This commit is contained in:
Proddy
2023-07-15 11:36:18 +02:00
parent b659218d13
commit ed694f4ec5
9 changed files with 19 additions and 22 deletions

View File

@@ -22,7 +22,6 @@
namespace uuid { namespace uuid {
// added by proddy for EMS-ESP
static uint64_t now_millis = 0; static uint64_t now_millis = 0;
// returns system uptime in seconds // returns system uptime in seconds

View File

@@ -21,7 +21,7 @@
namespace uuid { namespace uuid {
void loop() { void loop() {
set_uptime(); // added by proddy set_uptime();
} }
} // namespace uuid } // namespace uuid

View File

@@ -102,8 +102,8 @@ void loop();
*/ */
uint64_t get_uptime_ms(); uint64_t get_uptime_ms();
uint32_t get_uptime(); // added by proddy for EMS-ESP uint32_t get_uptime();
uint32_t get_uptime_sec(); // added by proddy for EMS-ESP uint32_t get_uptime_sec();
void set_uptime(); void set_uptime();

View File

@@ -65,7 +65,6 @@ void Shell::display_prompt() {
std::string context = context_text(); std::string context = context_text();
print(prompt_prefix()); print(prompt_prefix());
// colors added by proddy
if (!hostname.empty()) { if (!hostname.empty()) {
print(COLOR_BRIGHT_GREEN); print(COLOR_BRIGHT_GREEN);
print(COLOR_BOLD_ON); print(COLOR_BOLD_ON);
@@ -78,7 +77,6 @@ void Shell::display_prompt() {
print(COLOR_BOLD_ON); print(COLOR_BOLD_ON);
print(context); print(context);
print(COLOR_RESET); print(COLOR_RESET);
// print(' ');
} }
print(prompt_suffix()); print(prompt_suffix());
print(' '); print(' ');

View File

@@ -365,7 +365,7 @@ bool SyslogService::can_transmit() {
#endif #endif
if (!emsesp::EMSESP::system_.network_connected()) { if (!emsesp::EMSESP::system_.network_connected()) {
return false; // added by proddy. Check Ethernet return false;
} }
const uint64_t now = uuid::get_uptime_ms(); const uint64_t now = uuid::get_uptime_ms();