Browse Source

Use _MIN over MIN

Scott Lahteine 4 years ago
parent
commit
1c3a1ab2c6
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/src/feature/digipot/digipot_mcp4451.cpp

+ 1
- 1
Marlin/src/feature/digipot/digipot_mcp4451.cpp View File

@@ -72,7 +72,7 @@ void digipot_i2c_set_current(const uint8_t channel, const float current) {
72 72
 
73 73
   // Set actual wiper value
74 74
   byte addresses[4] = { 0x00, 0x10, 0x60, 0x70 };
75
-  i2c_send(addr, addresses[channel & 0x3], current_to_wiper(MIN((float) _MAX(current, 0), DIGIPOT_I2C_MAX_CURRENT)));
75
+  i2c_send(addr, addresses[channel & 0x3], current_to_wiper(_MIN(float(_MAX(current, 0)), DIGIPOT_I2C_MAX_CURRENT)));
76 76
 }
77 77
 
78 78
 void digipot_i2c_init() {

Loading…
Cancel
Save