Skip to content

Commit

Permalink
Fix initial value setting bug for device_nickname in kismet.
Browse files Browse the repository at this point in the history
  • Loading branch information
btsimon97 committed Apr 6, 2021
1 parent 46952da commit 5d02f32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bluemon-kismet.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ async def process_message(message_json):
device_name = message_json['NEW_DEVICE']['kismet.device.base.commonname']
# Determine if device is known or not
device_known = False
device_nickname = "Unknown Device"
device_nickname = None
for section in devices.sections():
if devices.get(section, 'device_macaddr') == device_name:
device_known = True
Expand Down

0 comments on commit 5d02f32

Please sign in to comment.