Skip to content

Commit 1e7f834

Browse files
authored
Fix Camera Type check in flashconfig
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
1 parent 1a1eb16 commit 1e7f834

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utilities/device_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ def flashConfig(self):
948948
pass
949949

950950
try:
951-
if self.isPoE:
951+
if self.isPoE():
952952
if self.values['staticBut']:
953953
if check_ip(self.window, values['ip']) and check_ip(self.window, values['mask']) and check_ip(self.window, values['gateway'], req=False):
954954
conf.setStaticIPv4(values['ip'], values['mask'], values['gateway'])

0 commit comments

Comments
 (0)