fix(t18): normal switch off with one button (#6276)
This commit is contained in:
@@ -111,7 +111,7 @@ bool pwrForcePressed()
|
|||||||
bool pwrPressed()
|
bool pwrPressed()
|
||||||
{
|
{
|
||||||
#if defined(PWR_EXTRA_SWITCH_GPIO)
|
#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)
|
#elif defined(PWR_SWITCH_GPIO)
|
||||||
return !gpio_read(PWR_SWITCH_GPIO);
|
return !gpio_read(PWR_SWITCH_GPIO);
|
||||||
#else
|
#else
|
||||||
|
|||||||
Reference in New Issue
Block a user