| 417 | // --------------------------------------------------------------------------- |
| 418 | |
| 419 | void setiButtonPinMenu() { |
| 420 | options = {}; |
| 421 | gpio_num_t sel = GPIO_NUM_NC; |
| 422 | for (int8_t i = -1; i <= GPIO_NUM_MAX; i++) { |
| 423 | String label = "GPIO " + String(i); |
| 424 | options.push_back({label.c_str(), [i, &sel]() { sel = (gpio_num_t)i; }}); |
| 425 | } |
| 426 | loopOptions(options, bruceConfigPins.iButton + 1); |
| 427 | options.clear(); |
| 428 | bruceConfigPins.setiButtonPin(sel); |
| 429 | } |
| 430 | |
| 431 | #endif |
no test coverage detected