From 7b7bbc4aad21e14aa41fde32a61d6d52db4fb091 Mon Sep 17 00:00:00 2001 From: Jeroen Oudshoorn Date: Thu, 12 Dec 2024 09:48:48 +0100 Subject: [PATCH] Remove blink function, we don't use the led blink function anymore. --- pwnagotchi/utils.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/pwnagotchi/utils.py b/pwnagotchi/utils.py index ef88ddee..3fcf7cc7 100644 --- a/pwnagotchi/utils.py +++ b/pwnagotchi/utils.py @@ -1,7 +1,6 @@ import logging import glob import os -import time import subprocess import json @@ -557,20 +556,6 @@ def iface_channels(ifname): 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): """ Fields you can extract from a pcap file