From 89d592911e8748b4fd9185153478b2be101e2bc0 Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 18 Jul 2024 11:51:16 -0400 Subject: [PATCH] Used access functions for id and type --- pio_examples/gui/src/gui.ino | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pio_examples/gui/src/gui.ino b/pio_examples/gui/src/gui.ino index 1094ae2..39c805f 100644 --- a/pio_examples/gui/src/gui.ino +++ b/pio_examples/gui/src/gui.ino @@ -37,7 +37,7 @@ void numberCall(Control* sender, int type) void textCall(Control* sender, int type) { Serial.print("Text: ID: "); - Serial.print(sender->id); + Serial.print(sender->GetId()); Serial.print(", Value: "); Serial.println(sender->value); } @@ -45,7 +45,7 @@ void textCall(Control* sender, int type) void slider(Control* sender, int type) { Serial.print("Slider: ID: "); - Serial.print(sender->id); + Serial.print(sender->GetId()); Serial.print(", Value: "); Serial.println(sender->value); // Like all Control Values in ESPUI slider values are Strings. To use them as int simply do this: @@ -130,7 +130,7 @@ void padExample(Control* sender, int value) } Serial.print(" "); - Serial.println(sender->id); + Serial.println(sender->GetId()); } void switchExample(Control* sender, int value) @@ -147,7 +147,7 @@ void switchExample(Control* sender, int value) } Serial.print(" "); - Serial.println(sender->id); + Serial.println(sender->GetId()); } void otherSwitchExample(Control* sender, int value) @@ -164,7 +164,7 @@ void otherSwitchExample(Control* sender, int value) } Serial.print(" "); - Serial.println(sender->id); + Serial.println(sender->GetId()); } void setup(void)