debug
This commit is contained in:
Vendored
+3
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"python.pythonPath": "C:\\Program Files\\Python38\\python.exe"
|
||||||
|
}
|
||||||
+25
-24
@@ -130,33 +130,34 @@ def click_b3(channel):
|
|||||||
main_fun(BTN2_PIN)
|
main_fun(BTN2_PIN)
|
||||||
|
|
||||||
def click_b2(channel):
|
def click_b2(channel):
|
||||||
global aplist
|
|
||||||
global idxWin
|
|
||||||
global idxLen
|
|
||||||
global start
|
global start
|
||||||
global vert
|
global vert
|
||||||
global test
|
global apIndx
|
||||||
|
global chaSel
|
||||||
start = time.time()
|
if state == BTN3_PIN:
|
||||||
|
apIndx = -1
|
||||||
if apIndx >= 0:
|
if vert == 1:
|
||||||
main_fun(998)
|
if horz == 1:
|
||||||
#print ''.join(pwdLst) #TODO change password for real...
|
main_fun(995)
|
||||||
start = stamp - SCREEN_SAVER + 5
|
os.system("# enable hotspot")
|
||||||
|
else:
|
||||||
|
main_fun(996)
|
||||||
|
os.system("# disable hotspot")
|
||||||
|
elif vert == 2:
|
||||||
|
main_fun(997)
|
||||||
|
os.system("")
|
||||||
|
start = stamp - SCREEN_SAVER + 5
|
||||||
|
else:
|
||||||
|
main_fun(BTN1_PIN)
|
||||||
else:
|
else:
|
||||||
result = os.popen("iwlist {0} scan 2>/dev/null | grep '^..*ESSID:\"..*\"$' | sed 's/^.*ESSID:\"\\(..*\\)\".*$/\\1/'".format(iface)).read()
|
if apIndx < 0:
|
||||||
aplist = result.splitlines()
|
vert = 3 # Default
|
||||||
|
main_fun(BTN3_PIN)
|
||||||
idxLen = len(aplist)
|
else:
|
||||||
if (idxWin + SCREEN_LINES) > idxLen:
|
if chaSel < 2:
|
||||||
idxWin = idxLen - SCREEN_LINES
|
chaSel = chaSel + 1
|
||||||
if idxWin < 0:
|
pwdLst[horz] = choices[chaSel][vert]
|
||||||
idxWin = 0
|
main_fun(BTN2_PIN)
|
||||||
|
|
||||||
if vert > idxLen:
|
|
||||||
vert = idxLen
|
|
||||||
|
|
||||||
main_fun(channel)
|
|
||||||
|
|
||||||
def select_h(channel):
|
def select_h(channel):
|
||||||
global apIndx
|
global apIndx
|
||||||
|
|||||||
Reference in New Issue
Block a user