Use constant for development ID in modules

This commit is contained in:
Midgard 2020-09-07 22:43:36 +02:00
parent ad4dd577d8
commit 368e696242
Signed by: midgard
GPG key ID: 511C112F1331BBB4
2 changed files with 2 additions and 4 deletions

View file

@ -9,8 +9,7 @@ ezButton green_button(6);
void setup() {
Serial.begin(115200);
// WARNING: do not use 255 for your module
obus_module::setup(OBUS_TYPE_PUZZLE, 255);
obus_module::setup(OBUS_TYPE_PUZZLE, OBUS_PUZZLE_ID_DEVELOPMENT);
red_button.setDebounceTime(100);
green_button.setDebounceTime(100);
}

View file

@ -10,8 +10,7 @@ ezButton green_button(6);
void setup() {
Serial.begin(115200);
// WARNING: do not use 255 for your module
obus_module::setup(OBUS_TYPE_NEEDY, 255);
obus_module::setup(OBUS_TYPE_NEEDY, OBUS_NEEDY_ID_DEVELOPMENT);
green_button.setDebounceTime(100);
}