Skip to content

Commit

Permalink
reinitSCSI: Only platform_network_wifi_join if SSID is present
Browse files Browse the repository at this point in the history
  • Loading branch information
jcs committed Jan 7, 2025
1 parent 859407e commit 4f47043
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/BlueSCSI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,10 @@ static void reinitSCSI()
if (scsiDiskCheckAnyNetworkDevicesConfigured())
{
platform_network_init(scsiDev.boardCfg.wifiMACAddress);
platform_network_wifi_join(scsiDev.boardCfg.wifiSSID, scsiDev.boardCfg.wifiPassword);
if (scsiDev.boardCfg.wifiSSID[0] != '\0')
{
platform_network_wifi_join(scsiDev.boardCfg.wifiSSID, scsiDev.boardCfg.wifiPassword);
}
}
#endif
}
Expand Down

0 comments on commit 4f47043

Please sign in to comment.