Marcel Zickler преди 3 години
родител
ревизия
7f5aa25010
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      Assets/Scripts/Display/BikeDataDisplay.cs

+ 2 - 2
Assets/Scripts/Display/BikeDataDisplay.cs

@@ -28,11 +28,11 @@ namespace Display
         private BikeSensorData sensorData;
 
         // Start is called before the first frame update
-        void Start()
+        async void Start()
         {
             sensorData = BikeSensorData.Instance;
             //powermeter and ANT hr only for displaying for now TODO: move to controller if used for controlling
-            sensorData.StartListening(powermeterId: powerMeterId, hrAntId: hrAntId);
+            await sensorData.StartListening(powermeterId: powerMeterId, hrAntId: hrAntId);
 
             speedDisplayAvailable = speedDisplay != null;
             powerDisplayAvailable = powerDisplay != null;