fix(t18): normal switch off with one button (#6276)

This commit is contained in:
Raphael Coeffic
2025-05-20 17:57:17 +10:00
committed by GitHub
parent e5591839de
commit c03893fb13
@@ -111,7 +111,7 @@ bool pwrForcePressed()
bool pwrPressed()
{
#if defined(PWR_EXTRA_SWITCH_GPIO)
return !gpio_read(PWR_SWITCH_GPIO) && !gpio_read(PWR_EXTRA_SWITCH_GPIO);
return !gpio_read(PWR_SWITCH_GPIO) || !gpio_read(PWR_EXTRA_SWITCH_GPIO);
#elif defined(PWR_SWITCH_GPIO)
return !gpio_read(PWR_SWITCH_GPIO);
#else