Apply maths macros and type changes ahead of HAL
This commit is contained in:
parent
0c616700f3
commit
6c45d0fd81
26 changed files with 181 additions and 166 deletions
|
|
@ -38,7 +38,7 @@
|
|||
#endif
|
||||
|
||||
static byte current_to_wiper(const float current) {
|
||||
return byte(ceil(float((DIGIPOT_I2C_FACTOR * current))));
|
||||
return byte(CEIL(float((DIGIPOT_I2C_FACTOR * current))));
|
||||
}
|
||||
|
||||
static void i2c_send(const byte addr, const byte a, const byte b) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue