Browse Source

Fixed some warnings on the MakerParts configuration, when compiling using the AVR toolchain (integer overflow on the preprocessor calculations)

etagle 7 years ago
parent
commit
7447979110
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      Marlin/src/config/examples/MakerParts/Configuration.h

+ 3
- 3
Marlin/src/config/examples/MakerParts/Configuration.h View File

44
 //===========================================================================
44
 //===========================================================================
45
 
45
 
46
 // Voltage reference on potentiometer on Green Pololus in millivolts
46
 // Voltage reference on potentiometer on Green Pololus in millivolts
47
-#define Vref_mV   800
47
+#define Vref_mV   800UL
48
 
48
 
49
 // Rsc value used on PCB of the Green Pololus
49
 // Rsc value used on PCB of the Green Pololus
50
-#define Rsc_mOhms 100
50
+#define Rsc_mOhms 100UL
51
 
51
 
52
 // Estimated maximum acceleration for X and Y axis
52
 // Estimated maximum acceleration for X and Y axis
53
-#define MAX_XYAXIS_ACCEL (3 * (Vref_mV) * 100 / (Rsc_mOhms))
53
+#define MAX_XYAXIS_ACCEL (3UL * (Vref_mV) * 100UL / (Rsc_mOhms))
54
 
54
 
55
 // Notes:
55
 // Notes:
56
 //  If we could use 1.65A as motor current, then 3000 mm/s^2 as acceleration
56
 //  If we could use 1.65A as motor current, then 3000 mm/s^2 as acceleration

Loading…
Cancel
Save