This commit is contained in:
Lubos Petrovic
2020-12-21 15:23:51 +01:00
parent 682fa25ab8
commit b02394c4aa
2 changed files with 3 additions and 3 deletions

View File

@@ -1180,7 +1180,7 @@ void Board320_240::redrawScreen() {
} }
// BLE not connected // BLE not connected
if (!liveData->bleConnected && liveData->bleConnect) { if (!liveData->bleConnected && liveData->bleConnect && liveData->tmpSettings.commType == COMM_TYPE_OBD2BLE4) {
// Print message // Print message
spr.setTextSize(1); spr.setTextSize(1);
spr.setTextColor(TFT_WHITE, TFT_BLACK); spr.setTextColor(TFT_WHITE, TFT_BLACK);

View File

@@ -114,7 +114,7 @@ void BoardInterface::loadSettings() {
liveData->settings.lcdBrightness = 0; liveData->settings.lcdBrightness = 0;
liveData->settings.debugScreen = 0; liveData->settings.debugScreen = 0;
liveData->settings.predrawnChargingGraphs = 1; liveData->settings.predrawnChargingGraphs = 1;
liveData->settings.commType = 0; // BLE4 liveData->settings.commType = COMM_TYPE_OBD2BLE4; // BLE4
liveData->settings.wifiEnabled = 0; liveData->settings.wifiEnabled = 0;
tmpStr = "empty"; tmpStr = "empty";
tmpStr.toCharArray(liveData->settings.wifiSsid, tmpStr.length() + 1); tmpStr.toCharArray(liveData->settings.wifiSsid, tmpStr.length() + 1);
@@ -164,7 +164,7 @@ void BoardInterface::loadSettings() {
} }
if (liveData->tmpSettings.settingsVersion == 3) { if (liveData->tmpSettings.settingsVersion == 3) {
liveData->tmpSettings.settingsVersion = 4; liveData->tmpSettings.settingsVersion = 4;
liveData->tmpSettings.commType = 0; // BLE4 liveData->tmpSettings.commType = COMM_TYPE_OBD2BLE4; // BLE4
liveData->tmpSettings.wifiEnabled = 0; liveData->tmpSettings.wifiEnabled = 0;
tmpStr = "empty"; tmpStr = "empty";
tmpStr.toCharArray(liveData->tmpSettings.wifiSsid, tmpStr.length() + 1); tmpStr.toCharArray(liveData->tmpSettings.wifiSsid, tmpStr.length() + 1);