2019-12-12 07:29 AM
freqError = static_cast<int32_t>(readRegister(REG_FREQ_ERROR_MSB) & B111);
C has no static_cast, so how can I convert the above code to C?
(It 's C++, from Arduino)
2019-12-12 08:21 AM
freqError = (int32_t)(readRegister(REG_FREQ_ERROR_MSB) & B111);
2019-12-12 09:12 AM
Thank you!