Commit 347f62e1 authored by Agrigor's avatar Agrigor
Browse files

msg in communication class is now a local variable

parent d36920e0
...@@ -44,9 +44,9 @@ class Communication: ...@@ -44,9 +44,9 @@ class Communication:
buzzer.register_observer(self) buzzer.register_observer(self)
def notify(self, buzzer): def notify(self, buzzer):
self.__msg = "Button " + str(buzzer.number) + " pressed" msg = "Button " + str(buzzer.number) + " pressed"
self.send(self.msg) self.send(msg)
print(self.msg + " -> " + self.__target_ip) print(msg + " -> " + self.__target_ip)
class Buzzer: class Buzzer:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment