mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-25 18:37:19 +00:00
break mispelled and put a timeout after clear break too
This commit is contained in:
parent
52abeb002f
commit
f25074409d
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
|||
////////////////////////////////////////////////////////
|
||||
// Use the cool library //
|
||||
// git://github.com/voodootikigod/node-serialport.git //
|
||||
// to reset an arduino . //
|
||||
// to send break condition. //
|
||||
////////////////////////////////////////////////////////
|
||||
var com = require("serialport");
|
||||
|
||||
|
|
@ -28,9 +28,9 @@ function asserting() {
|
|||
|
||||
function clear() {
|
||||
console.log('clearing');
|
||||
serialPort.set({br:false}, function(err, something) {
|
||||
serialPort.set({brk:false}, function(err, something) {
|
||||
console.log('clear');
|
||||
done();
|
||||
setTimeout(done, 5000);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue