Skip to content

Commit

Permalink
Bugfix #6 v2.54
Browse files Browse the repository at this point in the history
  • Loading branch information
pucherot committed Jan 13, 2021
1 parent cc50d0f commit e8f723d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions back/pialert.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
#
# Pi.Alert v2.53 / 2021-01-13
# Pi.Alert v2.54 / 2021-01-13
# Puche 2020
# GNU GPLv3

Expand Down Expand Up @@ -295,9 +295,12 @@ def update_devices_MAC_vendors ():
#-------------------------------------------------------------------------------
def query_MAC_vendor (pMAC):
try :
# BUGFIX #6 - Fix pMAC parameter as numbers
pMACstr = str(pMAC)

# Check MAC parameter
mac = pMAC.replace (':','')
if len(pMAC) != 17 or len(mac) != 12 :
mac = pMACstr.replace (':','')
if len(pMACstr) != 17 or len(mac) != 12 :
return -2

# Search vendor in HW Vendors DB
Expand Down
Binary file modified db/pialert.db
Binary file not shown.

0 comments on commit e8f723d

Please sign in to comment.