Skip to content

Commit

Permalink
Fix Camera Type check in flashconfig
Browse files Browse the repository at this point in the history
self.isPoE is a method, not an attribute, the if statement is wrong and was not checking the camera type, preventing any config update in case of USB camera
  • Loading branch information
KenN7 authored Oct 17, 2024
1 parent 1a1eb16 commit 1e7f834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utilities/device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -948,7 +948,7 @@ def flashConfig(self):
pass

try:
if self.isPoE:
if self.isPoE():
if self.values['staticBut']:
if check_ip(self.window, values['ip']) and check_ip(self.window, values['mask']) and check_ip(self.window, values['gateway'], req=False):
conf.setStaticIPv4(values['ip'], values['mask'], values['gateway'])
Expand Down

0 comments on commit 1e7f834

Please sign in to comment.