Browse Source

Fix configSwitch() call in Migrate2.

master
Andrew Belt 3 years ago
parent
commit
e02d105589
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      Migrate2.md

+ 1
- 1
Migrate2.md View File

@@ -118,7 +118,7 @@ For momentary buttons and multi-state switches, displaying a real-valued paramet
Instead, use `configButton()` to hide the text field in its context menu, or `configSwitch()` to offer a list of choices.
```cpp
configButton(TAP_PARAM);
configSwitch(SYNC_PARAM, "Sync mode", {"Soft", "Hard"});
configSwitch(SYNC_PARAM, 0, 1, 0, "Sync mode", {"Soft", "Hard"});
```




Loading…
Cancel
Save