Naguissa / uRTCLib

Really tiny library to basic RTC functionality on Arduino. DS1307, DS3231 and DS3232 RTCs are supported.
https://www.foroelectro.net/librerias-arduino-ide-f29/rtclib-arduino-libreria-simple-y-eficaz-para-rtc-y-t95.html
GNU Lesser General Public License v3.0
87 stars 24 forks source link

STM32 - (ST core) - %hhu format specifiers aren't supported. #15

Closed prosper00 closed 4 years ago

prosper00 commented 4 years ago

Tested and got this working on an STM32F103 (bluepill) board this afternoon. Works great, however, in several of your examples, you use the %hhu (printf) format specifier, which isn't supported by newlib nano on the official ST arduino core for the STM32 (not sure about the roger clark/maple core). Simply using %u seems to work OK however.

(although the STM32 has an onboard RTC, I was using a 3231)

Naguissa commented 4 years ago

Hello,

Thanks for the report.

I've tested compiling it and doesn't give me any warning. I have not tested on the board, so I don't know if it fails there. Is it the case?

Cheers.

prosper00 commented 4 years ago

Yes, it compiles fine, however, the serial monitor literally prints "hu hu hu hu..."

Naguissa commented 4 years ago

Fixed on new release, 6.2.5

Thanks!