fix: tryfix power status
All checks were successful
Build ESP32 BMC Firmware / build (push) Successful in 55s

This commit is contained in:
2026-03-18 10:12:37 +01:00
parent 3dd8296dbe
commit e269bf62f3
2 changed files with 2 additions and 2 deletions

View File

@@ -241,6 +241,6 @@ esp_err_t gpio_reset(void) {
} }
bool gpio_power_status(void) { bool gpio_power_status(void) {
int level = gpio_get_level(BMC_GPIO_POWER); int level = gpio_read(BMC_GPIO_POWER);
return (level == 1); return (level == 1);
} }

View File

@@ -1023,7 +1023,7 @@
const indicator = document.getElementById('power-indicator'); const indicator = document.getElementById('power-indicator');
const status = document.getElementById('power-status'); const status = document.getElementById('power-status');
if (result.data.power_good) { if (result.data.power_status === 'on') {
indicator.classList.add('on'); indicator.classList.add('on');
status.textContent = 'ON'; status.textContent = 'ON';
} else { } else {