W00ng / ESP32-S3-RGB-Panel

52 stars 18 forks source link

Ninja build fails for exmaples with errors of the type '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int #4

Closed dmsherazi closed 1 year ago

dmsherazi commented 1 year ago
/ESP32-S3-RGB-Panel/components/i2c_bus/i2c_bus.c:428:1: error: format '                              '%d' expects argument of type 'int', but argument 6 has type 'long unsigned int                                         K' [-Werror=format=]
  428 |     I2C_BUS_MUTEX_TAKE(i2c_device->i2c_bus->mutex, ESP_ERR_TIMEOUT);
      | ^   ~~~~~~~
dmsherazi commented 1 year ago

Also there is another error

image

It seems the issue is with idf 5.0 https://github.com/espressif/esp-idf/issues/9511

Any whays whats the proper way to fix it? should I downgrade to IDF 4.x ?

I tried some of the workarounds that were mentioned in the above mentioned issue but none of them works for me

dmsherazi commented 1 year ago

Downgrading to IDF 4.3 fixed issues