Merge pull request #213 from bobbycar-graz/feedc0de_fixes

Fix feedc0de config
This commit is contained in:
2022-01-02 16:16:42 +01:00
committed by GitHub
2 changed files with 3 additions and 5 deletions

View File

@ -81,5 +81,5 @@ set(BOBBYCAR_BUILDFLAGS
-DFEATURE_DNS_NS
# -DSWITCH_BLINK
# -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:
std::string text() const override
{
return fmt::format("{}: {}: {}",
"gas",
return fmt::format("gas: {}: {}",
raw_gas ? std::to_string(*raw_gas) : "?",
gas ? fmt::format("{:.02f}", *gas) : "?");
}
@ -58,8 +57,7 @@ struct BremsText : public virtual espgui::TextInterface
public:
std::string text() const override
{
return fmt::format("{}: {}: {}",
"brems",
return fmt::format("brems: {}: {}",
raw_brems ? std::to_string(*raw_brems) : "?",
brems ? fmt::format("{:.02f}", *brems) : "?");
}