1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-07-04 21:30:19 +00:00

Reordered arguments of ESPUIClass::addControl

The arguments value, color and callback have defaults
This commit is contained in:
Christian Riggenbach
2019-03-03 21:50:06 +01:00
parent 37ce571b9c
commit a4989b4eb0
2 changed files with 19 additions and 18 deletions

View File

@ -151,9 +151,9 @@ class Control {
#define T_VALUE 10
enum Verbosity : uint8_t {
Quiet = 0,
Verbose,
VerboseJSON
Quiet = 0,
Verbose,
VerboseJSON
};
class ESPUIClass {
@ -173,8 +173,8 @@ class ESPUIClass {
// Creating Elements
int addControl( ControlType type, const char* label,
void ( *callback )( Control, int ),
String value, ControlColor color );
String value = String( "" ), ControlColor color = ControlColor::Turquoise,
void ( *callback )( Control, int ) = nullptr );
int button( const char* label,
void ( *callback )( Control, int ), ControlColor color,