--- a/src/eric7/MicroPython/WifiDialogs/WifiApConfigDialog.py Fri Feb 24 14:11:20 2023 +0100 +++ b/src/eric7/MicroPython/WifiDialogs/WifiApConfigDialog.py Fri Feb 24 18:36:43 2023 +0100 @@ -127,15 +127,16 @@ and a flag indicating to save the parameters to the settings @rtype tuple of (str, str, int, bool) """ - if self.__withIP: - ifconfig = ( + ifconfig = ( + ( self.addressEdit.text(), self.netmaskEdit.text(), self.gatewayEdit.text(), self.dnsEdit.text(), ) - else: - ifconfig = ("", "", "", "") + if self.__withIP + else ("", "", "", "") + ) return ( self.apSsidEdit.text(),