Skip to content

Commit c631aa4

Browse files
authored
Merge pull request #612 from pyocoding/develop-hw
표쌤코딩 하드웨어 기능 수정
2 parents 0e1410e + 799d09f commit c631aa4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/modules/0uboard.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,11 @@ Module.prototype.setSerialPort = function (sp) {
9090

9191
// Module.prototype.lostController = function () {};
9292

93-
Module.prototype.requestInitialData = function() {
93+
Module.prototype.requestInitialData = function(sp) {
94+
this.sp = sp;
95+
this.sp.binding.openOptions.hupcl=false;
96+
this.sp.set({ dtr: false, rts: true });
97+
this.sp.set({ dtr: false, rts: false });
9498
return this.makeSensorReadBuffer(this.sensorTypes.ANALOG, 0);
9599
};
96100

app/modules/0uboard.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"duration": 32,
3030
"vendor": ["Arduino", "wch.cn", "FTDI"],
3131
"baudRate": 57600,
32-
"lostTimer": 1000,
32+
"lostTimer": 5000,
3333
"firmwarecheck": false
3434
}
3535
}

0 commit comments

Comments
 (0)