1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/u8g2/src/csrc/u8g2_riotos.c: fix cpp.check shiftTooManyBitsSigned

This commit is contained in:
Francisco Molina 2019-11-21 09:10:11 +01:00
parent 4c0dd49603
commit 7e2fd21f2a

View File

@ -59,7 +59,7 @@ static void u8x8_enable_pins(gpio_t* pins, uint32_t pins_enabled)
uint8_t i;
for (i = 0; i < 32; i++) {
if (pins_enabled & (1 << i)) {
if (pins_enabled & ((uint32_t)1 << i)) {
if (pins[i] != GPIO_UNDEF) {
if (i < U8X8_PIN_OUTPUT_CNT) {
gpio_init(pins[i], GPIO_OUT);