Skip to content

Commit

Permalink
better debug for hotspot app
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Dec 21, 2024
1 parent deee92d commit 3f28ea8
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import threading
import tempfile
import time
import traceback
from flask import (
Flask,
redirect,
Expand Down Expand Up @@ -91,7 +92,7 @@ def wpa_cli_reconfigure(self):
continue

output += line
# print(line, end="")
print_err(f"wpa_cli: {line})")
if "Interactive mode" in line:
proc.stdin.write("reconfigure\n")
proc.stdin.flush()
Expand All @@ -101,7 +102,7 @@ def wpa_cli_reconfigure(self):
connected = True
break
except:
pass
print_err(traceback.format_exc())
finally:
if proc:
proc.terminate()
Expand Down

0 comments on commit 3f28ea8

Please sign in to comment.