File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,9 @@ void setup() {
73
73
bar.updateX (XAxis, 7 );
74
74
75
75
/* Attach Button Callback */
76
- button.attachCallback ([&](bool value){
76
+ button.attachCallback ([&](int value){
77
77
/* Print our new button value received from dashboard */
78
- Serial.println (" Button Triggered: " +String ((value)?" true" :" false" ));
78
+ Serial.println (" Button Triggered: " +String ((value == 1 )?" true" :" false" ));
79
79
/* Make sure we update our button's value and send update to dashboard */
80
80
button.update (value);
81
81
dashboard.sendUpdates ();
Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ void setup() {
71
71
Serial.println (WiFi.localIP ());
72
72
73
73
/* Attach Button Callback */
74
- button.attachCallback ([&](bool value){
74
+ button.attachCallback ([&](int value){
75
75
/* Print our new button value received from dashboard */
76
- Serial.println (" Button Triggered: " +String ((value)?" true" :" false" ));
76
+ Serial.println (" Button Triggered: " +String ((value == 1 )?" true" :" false" ));
77
77
/* Make sure we update our button's value and send update to dashboard */
78
78
button.update (value);
79
79
dashboard.sendUpdates ();
You can’t perform that action at this time.
0 commit comments