fix: use function parameter in changePassword() #14

Manually merged
sqozz merged 1 commit from cfr34k/sem6000:fix_changePassword into master 2020-05-02 19:22:39 +02:00

View file

@ -63,7 +63,7 @@ class SEMSocket():
payload.append(0x00) payload.append(0x00)
payload.append(0x01) payload.append(0x01)
for i in range(4): for i in range(4):
payload.append(int(self.newPassword[i])) payload.append(int(newPassword[i]))
for i in range(4): for i in range(4):
payload.append(int(self.password[i])) payload.append(int(self.password[i]))
self.password = newPassword self.password = newPassword