Explorar o código

efem报错不能运行

lixiang %!s(int64=2) %!d(string=hai) anos
pai
achega
acbb0f745b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Venus/Venus_RT/Devices/VirgoSignalTower.cs

+ 1 - 1
Venus/Venus_RT/Devices/VirgoSignalTower.cs

@@ -94,7 +94,7 @@ namespace Venus_RT.Devices
 
                     break;
             }
-            EfemController.SetLamp(venusType, venusSetpoint);
+            EfemController?.SetLamp(venusType, venusSetpoint);
             _SignalTower.SetLight(venusType, lightState);
             return true;
         }