Small bug: don't set the type to Button in ESPUIClass::slider()

This commit is contained in:
Christian Riggenbach 2019-03-04 21:08:52 +01:00
parent 6178e4fc22
commit d0c59ac659
1 changed files with 1 additions and 1 deletions

View File

@ -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 ),