pico-sdk icon indicating copy to clipboard operation
pico-sdk copied to clipboard

Improved const correctness of rtc functions

Open tornupnegatives opened this issue 2 years ago • 0 comments

This PR fixes #1454 by adding const qualifiers to the datetime_t * argument of various RTC functions which do not modify the parameter. I have encountered this issue in my personal and professional projects, and it leads to a lot of static_cast-ing in C++ projects.

tornupnegatives avatar Jul 19 '23 20:07 tornupnegatives