BT Pin code (#5536)

* x7

* add x12 pin code
make strings translatable

* Cosmetics
This commit is contained in:
3djc
2017-12-18 21:03:18 +01:00
committed by Bertrand Songis
parent 394bc1689f
commit 4df64695c7
16 changed files with 119 additions and 42 deletions
+2 -2
View File
@@ -806,9 +806,9 @@ bool menuModelSetup(event_t event)
else {
lcdDrawText(MENUS_MARGIN_LEFT + INDENT_WIDTH, y, "---");
if (bluetoothState < BLUETOOTH_STATE_IDLE)
drawButton(MODEL_SETUP_2ND_COLUMN, y, "Init", attr);
drawButton(MODEL_SETUP_2ND_COLUMN, y, STR_BLUETOOTH_INIT, attr);
else
drawButton(MODEL_SETUP_2ND_COLUMN, y, "Discover", attr);
drawButton(MODEL_SETUP_2ND_COLUMN, y, STR_BLUETOOTH_DISC, attr);
if (attr && event == EVT_KEY_FIRST(KEY_ENTER)) {
if (bluetoothState < BLUETOOTH_STATE_IDLE)
bluetoothState = BLUETOOTH_STATE_OFF;