mit-drl / e-vent

MIT Project: A low cost emergency ventilator controller
39 stars 31 forks source link

Cast delay to int and clip at zero #55

Closed amadoantonini closed 4 years ago

amadoantonini commented 4 years ago

Delay at end of loop was sometimes getting a -1, causing the system to stop.

amadoantonini commented 4 years ago

Fixed in https://github.com/mit-drl/e-vent/commit/b0b2b699576607ba143c3c404435f6e7c1e171fb