PM updates, still need Battery to show up on periph screen and calibration/recalib stuff to work, but it should tomorrow
This commit is contained in:
@@ -233,7 +233,7 @@ class _DeviceSetupState extends State<DeviceSetup> {
|
||||
bool ent = isEnterprise(network);
|
||||
bool open = isOpen(network);
|
||||
|
||||
Map<String, String> creds = await showDialog(
|
||||
Map<String, String>? creds = await showDialog(
|
||||
context: context,
|
||||
builder: (dialogContext) {
|
||||
return StatefulBuilder(
|
||||
@@ -309,6 +309,7 @@ class _DeviceSetupState extends State<DeviceSetup> {
|
||||
}
|
||||
);
|
||||
|
||||
if (creds == null) return;
|
||||
if (creds["password"] == null && !open) return;
|
||||
if (creds["uname"] == null && ent) return;
|
||||
await transmitWiFiDetails(network["ssid"], network["auth"], creds);
|
||||
|
||||
Reference in New Issue
Block a user