mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
formatting
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
namespace uuid {
|
namespace uuid {
|
||||||
|
|
||||||
void loop() {
|
void loop() {
|
||||||
set_uptime(); // added by proddy
|
set_uptime();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace uuid
|
} // namespace uuid
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
@@ -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(' ');
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user