rename external_call to send_status_update
This commit is contained in:
parent
220f4674e5
commit
903d48806e
@ -158,7 +158,7 @@ class Vehicle:
|
||||
self.driving = True
|
||||
while self.driving:
|
||||
self.check_reset()
|
||||
self.external_call()
|
||||
self.send_status_update()
|
||||
time.sleep(UPDATE_INTERVAL)
|
||||
|
||||
def stop_driving(self):
|
||||
@ -182,7 +182,7 @@ class Vehicle:
|
||||
self.nce = False
|
||||
|
||||
@circuit(failure_threshold=10, expected_exception=ConnectionError)
|
||||
def external_call(self):
|
||||
def send_status_update(self):
|
||||
# TODO inform the message broker about the current status
|
||||
print(v1.driven_kms, '\t', v1.daf)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user