Skip to content

Commit 02d3601

Browse files
committed
fix 4.1 bugs
1 parent 3dc0eb3 commit 02d3601

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wifi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ def main():
241241
up.add_argument('-n', '--name', help='coderbot unique id')
242242
get = subparsers.add_parser('getcfg', help="get configuration")
243243
get.add_argument('-s', '--ssid', nargs="*", help='wifi mode')
244+
get = subparsers.add_parser('setuniquessid', help="set unique ssid")
244245
args = vars(parser.parse_args())
245246
w = WiFi()
246247
if args:
@@ -256,8 +257,9 @@ def main():
256257
elif args["subparser_name"] == "getcfg":
257258
if "ssid" in args:
258259
print(w.get_ap_params()["ssid"])
259-
else:
260+
elif args["subparser_name"] == "setuniquessid":
260261
w.set_unique_ssid()
262+
else:
261263
w.start_service()
262264

263265
if __name__ == "__main__":

0 commit comments

Comments
 (0)