diff --git a/README.md b/README.md index 93be59d..563f4c5 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,10 @@ Screen list ## Release notes +### v1.6 2020-06-30 +- fixed ble device pairing +- added command to set protocol ISO 15765-4 CAN (11 bit ID, 500 kbit/s) - some vgate adapters freezes during "init at command" phase + ### v1.5 2020-06-03 - added support for different units (miles, fahrenheits, psi) diff --git a/dist/enirodashboard.ino.bin b/dist/enirodashboard.ino.bin index dd4e7ed..193b6df 100644 Binary files a/dist/enirodashboard.ino.bin and b/dist/enirodashboard.ino.bin differ diff --git a/enirodashboard.ino b/enirodashboard.ino index a3ae3c6..f13b4b4 100644 --- a/enirodashboard.ino +++ b/enirodashboard.ino @@ -1,6 +1,6 @@ /* - KIA eNiro Dashboard 1.5, 2020-06-03 + KIA eNiro Dashboard 1.6, 2020-06-30 !! working only with OBD BLE 4.0 adapters !! Supported adapter is Vgate ICar Pro (must be BLE4.0 version) !! Not working with standard BLUETOOTH 3 adapters @@ -193,7 +193,7 @@ MENU_ITEM menuItems[menuItemsCount] = { {4032, 403, -1, "Psi"}, {9999, 9998, 0, "List of BLE devices"}, - {10000, 9999, -1, "empty list"}, + {10000, 9999, 0, "<- parent menu"}, {10001, 9999, -1, "-"}, {10002, 9999, -1, "-"}, {10003, 9999, -1, "-"}, @@ -1150,7 +1150,7 @@ bool menuItemClick() { } else { Serial.println(tmpMenuItem.id); // Device list - if (tmpMenuItem.id >= 10000 && tmpMenuItem.id < 10100) { + if (tmpMenuItem.id > 10000 && tmpMenuItem.id < 10100) { strlcpy((char*)settings.obdMacAddress, (char*)tmpMenuItem.obdMacAddress, 20); Serial.print("Selected adapter MAC address "); Serial.println(settings.obdMacAddress); @@ -1613,7 +1613,7 @@ class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks { String tmpStr; if (scanningDeviceIndex < 10/* && advertisedDevice.haveServiceUUID()*/) { for (uint16_t i = 0; i < menuItemsCount; ++i) { - if (menuItems[i].id == 10000 + scanningDeviceIndex) { + if (menuItems[i].id == 10001 + scanningDeviceIndex) { tmpStr = advertisedDevice.toString().c_str(); tmpStr.replace("Name: ", ""); tmpStr.replace("Address: ", "");