Oxygen-concentrator
Oxygen-concentrator copied to clipboard
Software/O2Concetrator/ZeolitePath.cpp line
No tengo Arduino pero lo he pasado (adaptado) a Java y tuve problemas en la línea 72.
void ZeolitePath::Spin()
{
// Are we due to do anything?
unsigned long now = millis();
// Maybe. What?
switch(state)
{
case idle:
return; // <- aquí
No funcionaba correctamente. Pero al cambiar return por break (sólo en esa línea) se soluciono.
void ZeolitePath::Spin()
{
// Are we due to do anything?
unsigned long now = millis();
// Maybe. What?
switch(state)
{
case idle:
break; // <- aquí lo he corregido.