diff --git a/CMakeLists.txt b/CMakeLists.txt index 3da5c70..b7533c9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -107,7 +107,6 @@ set(dependencies espchrono espcpputils espwifistack - fmt TFT_eSPI esptftlib espfontlib diff --git a/src/changevaluedisplay.cpp b/src/changevaluedisplay.cpp index 38e1620..b32c40a 100644 --- a/src/changevaluedisplay.cpp +++ b/src/changevaluedisplay.cpp @@ -1,7 +1,9 @@ #include "changevaluedisplay.h" +// system includes +#include + // 3rdparty lib includes -#include #include // local includes @@ -38,6 +40,6 @@ void ChangeValueDisplay::redraw(TftInterface &tft) { Base::redraw(tft); - m_valueLabel.redraw(tft, fmt::format("{:.02f}", m_value), TFT_WHITE, TFT_BLACK, 7); + m_valueLabel.redraw(tft, std::format("{:.02f}", m_value), TFT_WHITE, TFT_BLACK, 7); } } // namespace espgui diff --git a/src/keyboardhelper.h b/src/keyboardhelper.h index 1a3cac0..c8afd4c 100644 --- a/src/keyboardhelper.h +++ b/src/keyboardhelper.h @@ -4,7 +4,6 @@ #include // 3rdparty lib includes -#include #include #include diff --git a/src/textwithvaluehelper.h b/src/textwithvaluehelper.h index e484f7b..f610c49 100644 --- a/src/textwithvaluehelper.h +++ b/src/textwithvaluehelper.h @@ -1,7 +1,9 @@ #pragma once +// system includes +#include + // 3rdparty lib includes -#include #include #include #include @@ -26,7 +28,7 @@ struct TextWithValueHelper : public Taccessor, public virtual TextInterface using espchrono::toString; using wifi_stack::toString; - return fmt::format("{} {}", Tprefix, richTextEscape(toString(Taccessor::getValue()))); + return std::format("{} {}", Tprefix, richTextEscape(toString(Taccessor::getValue()))); } }; @@ -42,7 +44,7 @@ struct ChangeableTextWithValueHelper : public Taccessor, public virtual TextInte using espchrono::toString; using wifi_stack::toString; - return fmt::format("{} {}", m_prefix, richTextEscape(toString(Taccessor::getValue()))); + return std::format("{} {}", m_prefix, richTextEscape(toString(Taccessor::getValue()))); } const std::string &prefix() const { return m_prefix; } @@ -65,7 +67,7 @@ struct TextWithHighlightedValueHelper : public Taccessor, public virtual TextInt using espchrono::toString; using wifi_stack::toString; - return fmt::format("{} {}{}", Tprefix, Tguilib_color, richTextEscape(toString(Taccessor::getValue()))); + return std::format("{} {}{}", Tprefix, Tguilib_color, richTextEscape(toString(Taccessor::getValue()))); } }; @@ -81,7 +83,7 @@ struct ChangeableTextWithHighlightedValueHelper : public Taccessor, public virtu using espchrono::toString; using wifi_stack::toString; - return fmt::format("{} {}{}", m_prefix, Tguilib_color, richTextEscape(toString(Taccessor::getValue()))); + return std::format("{} {}{}", m_prefix, Tguilib_color, richTextEscape(toString(Taccessor::getValue()))); } const std::string &prefix() const { return m_prefix; }