We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e1c616 commit d5d6a8eCopy full SHA for d5d6a8e
ports/analog/common-hal/digitalio/DigitalInOut.c
@@ -107,7 +107,7 @@ digitalio_direction_t common_hal_digitalio_digitalinout_get_direction(
107
108
if (self->pin->port < 4) {
109
// Check that I/O mode is enabled and we don't have in AND out on at the same time
110
- MP_STATIC_ASSERT(!((port->en0 & mask) && (port->inen & mask) && (port->outen & mask)));
+ MP_STATIC_ASSERT_NONCONSTEXPR(!((port->en0 & mask) && (port->inen & mask) && (port->outen & mask)));
111
112
if ((port->en0 & mask) && (port->outen & mask)) {
113
return DIRECTION_OUTPUT;
0 commit comments