Skip to content

Commit

Permalink
Update usb_alerts.py
Browse files Browse the repository at this point in the history
  • Loading branch information
phate999 authored Dec 6, 2024
1 parent 7893ca9 commit 0614eca
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions usb_alerts/usb_alerts.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@
if 'speed USB' in line:
msg = f'USB Connected: {line.split("USB")[1].strip()}'
cp.alert(msg)
cp.log(msg.replace('USB', 'U5B'))
if 'USB disconnect' in line:
msg = line.split(":")[2].strip().replace("disconnect", "Disconnected")
cp.alert(msg)
cp.log(msg.replace('USB', 'U5B'))
except:
pass

0 comments on commit 0614eca

Please sign in to comment.