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:
parent
4c0dd49603
commit
7e2fd21f2a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user