makers-for-life / makair

🫁 The world's first open-source ventilator tested on human patients. Mass-producible at a low cost (~2000€).
Other
818 stars 78 forks source link

Suspicious test #34

Closed jlbirccyn closed 4 years ago

jlbirccyn commented 4 years ago

Test here

https://github.com/covid-response-projects/covid-respirator/blob/bb0498889a6f3fb93348fc18bfb514d5adc137c7/src/arduino/respi_v0.cpp#L340

leads to execute the if section one more centieme than expected (according to the name of variable nbreCentiemeSecParInspi) because currentCentieme starts at 0. It should be:

if (currentCentieme < nbreCentiemeSecParInspi) { 
dsferruzza commented 4 years ago

In the last two weeks the code architecture changed a lot and I believe this specific issue is now outdated, so I'm closing this! (Thanks for the reminder!)