Skip to content

Commit c45bed4

Browse files
committed
bug fix for 1.110
1 parent f9dd3b4 commit c45bed4

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ WiTcontroller:
448448
* If none found will ask to enter the IP Address and Port
449449
* Guesses the WiThrottle IP address and Port for DCC-EX EX-CommandStations in Access Point (AP) mode
450450

451-
From version 1.110 it 'guesses' that there will be a server on 192.168.4.1:2650 if the SSID name contains "DCCEX" or "DCC-EX". (Prior version 1.110 it would only guess if the SSID name was in the default form of "DCCEX_xxxxxx".)
451+
From version 1.111 it 'guesses' that there will be a server on 192.168.4.1:2650 if the SSID name contains "DCCEX" or "DCC-EX". (Prior version 1.111 it would only guess if the SSID name was in the default form of "DCCEX_xxxxxx".)
452452
* Optionally you can add a #define (a preference) to disable this auto connect feature
453453
* Allows On-the-fly consists/MUs
454454
Allows assigning commands directly to the 1-9 buttons (in the sketch) (see list below)

WiTcontroller.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ void browseWitService() {
955955

956956
noOfWitServices = 0;
957957
// if ( (selectedSsid.substring(0,6) == "DCCEX_") && (selectedSsid.length()==12) ) {
958-
if ( (selectedSsid.indexOf("DCCEX")>0) || (selectedSsid.indexOf("DCC-EX")>0) ) {
958+
if ( (selectedSsid.indexOf("DCCEX")>=0) || (selectedSsid.indexOf("DCC-EX")>=0) ) {
959959
debug_println(MSG_BYPASS_WIT_SERVER_SEARCH);
960960
oledText[1] = MSG_BYPASS_WIT_SERVER_SEARCH;
961961
writeOledBattery();
@@ -998,7 +998,7 @@ void browseWitService() {
998998
}
999999
}
10001000
// if ( (selectedSsid.substring(0,6) == "DCCEX_") && (selectedSsid.length()==12) ) {
1001-
if ( (selectedSsid.indexOf("DCCEX")>0) || (selectedSsid.indexOf("DCC-EX")>0) ) {
1001+
if ( (selectedSsid.indexOf("DCCEX")>=0) || (selectedSsid.indexOf("DCC-EX")>=0) ) {
10021002
foundWitServersIPs[foundWitServersCount].fromString("192.168.4.1");
10031003
foundWitServersPorts[foundWitServersCount] = 2560;
10041004
foundWitServersNames[foundWitServersCount] = MSG_GUESSED_EX_CS_WIT_SERVER;

change_log.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Versions
44

5+
### V1.111
6+
7+
- bug fix for 1.110
8+
59
### V1.110
610

711
- Now 'guesses' that there will be a server on 192.168.4.1:2650 if the SSID name contains "DCCEX" or "DCC-EX"

static.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const String appVersion = "v1.110";
1+
const String appVersion = "v1.111";
22
#ifndef CUSTOM_APPNAME
33
const String appName = "WiTcontroller";
44
#else

0 commit comments

Comments
 (0)