power_controller: read gpio pins from device tree
[bmcd] / src / app / bmc_application.rs
index f84aa9e283b2afcb7c17e2212557db335c82c32c..0648a0d793ac91fbec9e20af9cbc6a3ac48a457b 100644 (file)
@@ -168,7 +168,9 @@ impl BmcApplication {
         debug!("node activated bits updated:{:#06b}.", new_state);
 
         let led = new_state != 0;
-        self.power_controller.power_led(led).await?;
+        if let Err(e) = self.power_controller.power_led(led).await {
+            log::warn!("power LED error: {}", e);
+        }
 
         // also update the actual power state accordingly
         self.power_controller