some misc changes (#1848)

* some misc changes
* stealth_mode: disable hms
* fix bbl camera  #1091 #1830
* fix anker
This commit is contained in:
SoftFever
2023-08-20 20:02:54 +08:00
committed by GitHub
parent a202fde769
commit 6e1bdaf9d4
49 changed files with 360 additions and 296 deletions

View File

@@ -32,8 +32,8 @@ inline std::string utc_timestamp()
return utc_timestamp(get_current_time_utc());
}
inline std::string local_timestamp() {
return time2str(get_current_time_utc(), TimeZone::local, TimeFormat::gcode);
inline std::string local_timestamp(TimeFormat fmt = TimeFormat::gcode) {
return time2str(get_current_time_utc(), TimeZone::local, fmt);
}
// String to time_t function. Returns time_t(-1) if fails to parse the input.