mirror of
https://github.com/Rhinemann/IoT-Systems.git
synced 2026-03-14 20:50:39 +02:00
fix MapView/main.py crash due to wrong check condition
This commit is contained in:
parent
17738d07fe
commit
1c856dca0e
@ -69,7 +69,7 @@ class MapViewApp(App):
|
||||
"""
|
||||
lat, lon = point[0], point[1]
|
||||
|
||||
if not hasattr(self, 'car_marker'):
|
||||
if not self.car_marker:
|
||||
self.car_marker = MapMarker(lat=lat, lon=lon, source='./images/car')
|
||||
self.mapview.add_marker(self.car_marker)
|
||||
else:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user