mirror of
https://github.com/s00500/ESPUI.git
synced 2025-08-02 10:15:31 +00:00
Small bug: don't set the type to Button in ESPUIClass::slider()
This commit is contained in:
@@ -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 ),
|
||||||
|
Reference in New Issue
Block a user