Skip to content

Commit 6ffaac5

Browse files
author
Rishi Sharma
committed
Found overflow condition in pump control
1 parent ebfa77f commit 6ffaac5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/PumpControl/PumpControl.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
#define FLOW_TOTAL_LENGTH_TIME_A 1000
77
#define FLOW_TOTAL_LENGTH_TIME_B 1000
8-
#define UNIT_OF_LIQUID_A 12500
9-
#define UNIT_OF_LIQUID_B 18518
8+
#define UNIT_OF_LIQUID_A 12500UL
9+
#define UNIT_OF_LIQUID_B 18518UL // MUST BE AT LEAST LONG ELSE OVERFLOW
1010

1111
class PumpControl
1212
{

0 commit comments

Comments
 (0)