Skip to content

Commit d5d6a8e

Browse files
committed
use MP_STATIC_ASSERT_NONCONSTEXPR in ports/analog
1 parent 2e1c616 commit d5d6a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/analog/common-hal/digitalio/DigitalInOut.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ digitalio_direction_t common_hal_digitalio_digitalinout_get_direction(
107107

108108
if (self->pin->port < 4) {
109109
// 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)));
110+
MP_STATIC_ASSERT_NONCONSTEXPR(!((port->en0 & mask) && (port->inen & mask) && (port->outen & mask)));
111111

112112
if ((port->en0 & mask) && (port->outen & mask)) {
113113
return DIRECTION_OUTPUT;

0 commit comments

Comments
 (0)