Bsongis/issue 6910 x10 express bluetooth (#6931)

[X10 Express] Bluetooth function added
This commit is contained in:
Bertrand Songis
2019-10-11 08:09:59 +02:00
committed by GitHub
parent 9bdccd47fe
commit 135133423a
18 changed files with 93 additions and 53 deletions
+1 -1
View File
@@ -984,7 +984,7 @@ void menuModelSetup(event_t event)
}
if (bluetooth.state == BLUETOOTH_STATE_DISCOVER_START && reusableBuffer.moduleSetup.bt.devicesCount > 0) {
popupMenuItemsCount = min<uint8_t>(reusableBuffer.moduleSetup.bt.devicesCount, 6);
popupMenuItemsCount = min<uint8_t>(reusableBuffer.moduleSetup.bt.devicesCount, MAX_BLUETOOTH_DISTANT_ADDR);
for (uint8_t i=0; i<popupMenuItemsCount; i++) {
popupMenuItems[i] = reusableBuffer.moduleSetup.bt.devices[i];
}