issues
search
Mascobot
/
pandemic-ventilator-2.0
Open Source Pandemic Ventilator with Raspberry Pi and Arduino
239
stars
49
forks
source link
Firmware can hang
#9
Open
SzGaa
opened
4 years ago
SzGaa
commented
4 years ago
Using Serial in the main loop like you are using it can hang the program in case of communication error.
In case a device is not responding on I2C the 'read_flow' function can block forever.
while(Wire.available() == 0);