diff --git a/src/ESPUI.cpp b/src/ESPUI.cpp index b06d7bb..5a36d60 100644 --- a/src/ESPUI.cpp +++ b/src/ESPUI.cpp @@ -429,7 +429,7 @@ int ESPUIClass::graph( const char* label, ControlColor color ) { // TODO: this still needs a range setting int ESPUIClass::slider( const char* label, void ( *callback )( Control*, int ), ControlColor color, String value ) { - return addControl( ControlType::Button, label, "", color, Control::noParent, callback ); + return addControl( ControlType::Slider, label, "", color, Control::noParent, callback ); } int ESPUIClass::button( const char* label, void ( *callback )( Control*, int ),