sparkfun / SparkFun_u-blox_GNSS_Arduino_Library

An Arduino library which allows you to communicate seamlessly with the full range of u-blox GNSS modules
Other
227 stars 100 forks source link

pushRawData make input data const #221

Closed dizcza closed 6 months ago

dizcza commented 6 months ago

The pushRawData function takes constant data buffer dataBytes and should help users with the cost modifier.

Now I need to cast my const data to uint8_t* just because your API requires so.

PaulZC commented 6 months ago

Hi Danylo (@dizcza ),

I agree, with hindsight, it would have been better to use the const modifier. But this would be a breaking change. I am not going to change it now.

Best wishes, Paul