Closed valkuc closed 7 years ago
Thanks! Will check on the weekend!
About round(). I prefer to not use floating point calculation in embedded development when it is possible to implement functionality without it. In your case this can be achieved next way:
uint16_t fr_sel = (SCL_frequency_KHz + 50) / 100;
One more reason why I will not use round on native SDK is because to use it, we also need to link "libm" to or code. For some reason that was fail for me. I did not investigate why it fails.
Related discussion - https://github.com/pasko-zh/brzo_i2c/issues/9