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
|
|
@ -44,7 +44,7 @@
|
|||
#define DIGIPOT_A4988_MAX_CURRENT (DIGIPOT_A4988_Itripmax(DIGIPOT_A4988_Vrefmax) - 0.5)
|
||||
|
||||
static byte current_to_wiper(const float current) {
|
||||
return byte(ceil(float(DIGIPOT_A4988_FACTOR) * current));
|
||||
return byte(CEIL(float(DIGIPOT_A4988_FACTOR) * current));
|
||||
}
|
||||
|
||||
const uint8_t sda_pins[DIGIPOT_I2C_NUM_CHANNELS] = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue