cjq4435: python example and js modification for cjq4435 MOSFET sensor

Signed-off-by: Zion Orent <zorent@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Zion Orent
2015-03-26 09:28:36 -04:00
committed by Mihai Tudor Panu
parent 20890aa2fb
commit 6c93816a77
2 changed files with 49 additions and 1 deletions

View File

@ -79,7 +79,9 @@ function setDutyCycle()
process.on('SIGINT', function()
{
clearInterval(myInterval);
myMOSFETsensor.off();
myMOSFETsensor = null;
MOSFETsensor.cleanUp();
MOSFETsensor = null;
console.log("Exiting...");
process.exit(0);
});