Fix feedc0de config

This commit is contained in:
2022-01-02 16:08:52 +01:00
parent 911a843a39
commit b9bc5806ed
2 changed files with 3 additions and 5 deletions

View File

@ -81,5 +81,5 @@ set(BOBBYCAR_BUILDFLAGS
-DFEATURE_DNS_NS -DFEATURE_DNS_NS
# -DSWITCH_BLINK # -DSWITCH_BLINK
# -DFEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_KORREKT_ARBEITET # -DFEATURE_IS_MIR_EGAL_OB_DER_WEBSERVER_KORREKT_ARBEITET
-DFEATURE_ESPNOW # -DFEATURE_ESPNOW
) )

View File

@ -47,8 +47,7 @@ struct GasText : public virtual espgui::TextInterface
public: public:
std::string text() const override std::string text() const override
{ {
return fmt::format("{}: {}: {}", return fmt::format("gas: {}: {}",
"gas",
raw_gas ? std::to_string(*raw_gas) : "?", raw_gas ? std::to_string(*raw_gas) : "?",
gas ? fmt::format("{:.02f}", *gas) : "?"); gas ? fmt::format("{:.02f}", *gas) : "?");
} }
@ -58,8 +57,7 @@ struct BremsText : public virtual espgui::TextInterface
public: public:
std::string text() const override std::string text() const override
{ {
return fmt::format("{}: {}: {}", return fmt::format("brems: {}: {}",
"brems",
raw_brems ? std::to_string(*raw_brems) : "?", raw_brems ? std::to_string(*raw_brems) : "?",
brems ? fmt::format("{:.02f}", *brems) : "?"); brems ? fmt::format("{:.02f}", *brems) : "?");
} }