Fix missed shift replacement

This commit is contained in:
Hierophect 2019-09-07 13:19:50 -04:00
parent 642f4535f4
commit beb40a62a7

View File

@ -95,7 +95,7 @@ digitalio_direction_t common_hal_digitalio_digitalinout_get_direction(
void common_hal_digitalio_digitalinout_set_value( void common_hal_digitalio_digitalinout_set_value(
digitalio_digitalinout_obj_t *self, bool value) { digitalio_digitalinout_obj_t *self, bool value) {
HAL_GPIO_WritePin(pin_port(self->pin->number), 1 << self->pin->number, value); HAL_GPIO_WritePin(pin_port(self->pin->number), pin_mask(self->pin->number), value);
} }
bool common_hal_digitalio_digitalinout_get_value( bool common_hal_digitalio_digitalinout_get_value(