File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ bool tcpServerEnabled(const char ** line)
229
229
casterMode = true ;
230
230
231
231
// Select the base caster WiFi mode and port number
232
- if (settings.baseCasterOverride )
232
+ if (settings.baseCasterOverride || (settings. tcpOverWiFiStation == false ) )
233
233
{
234
234
// Using soft AP
235
235
name = " Base Caster" ;
@@ -698,10 +698,10 @@ void tcpServerUpdate()
698
698
{
699
699
if (settings.debugTcpServer && (!inMainMenu))
700
700
systemPrintf (" %s start/r/n" , tcpServerName);
701
- if (settings.tcpOverWiFiStation == true )
702
- networkConsumerAdd (NETCONSUMER_TCP_SERVER, NETWORK_ANY, __FILE__, __LINE__);
703
- else
701
+ if (tcpServerWiFiSoftAp)
704
702
networkSoftApConsumerAdd (NETCONSUMER_TCP_SERVER, __FILE__, __LINE__);
703
+ else
704
+ networkConsumerAdd (NETCONSUMER_TCP_SERVER, NETWORK_ANY, __FILE__, __LINE__);
705
705
tcpServerSetState (TCP_SERVER_STATE_WAIT_FOR_NETWORK);
706
706
}
707
707
break ;
You can’t perform that action at this time.
0 commit comments