1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-22 04:00:55 +00:00

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

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