mirror of
https://github.com/s00500/ESPUI.git
synced 2024-12-23 05:50:49 +00:00
Small bug: don't set the type to Button in ESPUIClass::slider()
This commit is contained in:
parent
6178e4fc22
commit
d0c59ac659
@ -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 ),
|
||||
|
Loading…
Reference in New Issue
Block a user