mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Remove blink function, we don't use the led blink function anymore.
This commit is contained in:
@ -1,7 +1,6 @@
|
|||||||
import logging
|
import logging
|
||||||
import glob
|
import glob
|
||||||
import os
|
import os
|
||||||
import time
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
import json
|
import json
|
||||||
@ -557,20 +556,6 @@ def iface_channels(ifname):
|
|||||||
return channels
|
return channels
|
||||||
|
|
||||||
|
|
||||||
def led(on=True):
|
|
||||||
with open('/sys/class/leds/led0/brightness', 'w+t') as fp:
|
|
||||||
fp.write("%d" % (0 if on is True else 1))
|
|
||||||
|
|
||||||
|
|
||||||
def blink(times=1, delay=0.3):
|
|
||||||
for _ in range(0, times):
|
|
||||||
led(True)
|
|
||||||
time.sleep(delay)
|
|
||||||
led(False)
|
|
||||||
time.sleep(delay)
|
|
||||||
led(True)
|
|
||||||
|
|
||||||
|
|
||||||
class WifiInfo(Enum):
|
class WifiInfo(Enum):
|
||||||
"""
|
"""
|
||||||
Fields you can extract from a pcap file
|
Fields you can extract from a pcap file
|
||||||
|
Reference in New Issue
Block a user