mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-26 00:21:27 +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
|
// TODO: this still needs a range setting
|
||||||
int ESPUIClass::slider( const char* label, void ( *callback )( Control*, int ),
|
int ESPUIClass::slider( const char* label, void ( *callback )( Control*, int ),
|
||||||
ControlColor color, String value ) {
|
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 ),
|
int ESPUIClass::button( const char* label, void ( *callback )( Control*, int ),
|
||||||
|
Loading…
Reference in New Issue
Block a user