Skip to content

Commit

Permalink
Merge 374c707 into master
Browse files Browse the repository at this point in the history
  • Loading branch information
MKleinSB authored Feb 2, 2019
2 parents 2317e28 + 374c707 commit c874fcb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ namespace makerbit {
);

while (true) {
const first = serial.readBuffer(1); // hier müsste die C++ Funktion einspringen
const first = serial_rb.readBuffer(1); // hier müsste die C++ Funktion einspringen

if (
first.getNumber(NumberFormat.UInt8LE, 0) ==
YX5300.ResponseType.RESPONSE_START_BYTE
) {
const remainder = serial.readBuffer(9); // hier müsste die C++ Funktion einspringen
const remainder = serial_rb.readBuffer(9); // hier müsste die C++ Funktion einspringen
responseBuffer.write(1, remainder);
const response = YX5300.decodeResponse(responseBuffer);
handleResponse(response);
Expand Down Expand Up @@ -303,7 +303,7 @@ namespace makerbit {
}

function sendCommand(command: Buffer): void {
serial.writeBuffer(command); // hier müsste die C++ Funktion einspringen
serial_rb.writeBuffer(command); // hier müsste die C++ Funktion einspringen
control.waitMicros(1000 * YX5300.REQUIRED_PAUSE_BETWEEN_COMMANDS_MILLIS);
}

Expand Down Expand Up @@ -577,4 +577,4 @@ namespace makerbit {
return { type: type, payload: payload };
}
}
}
}

0 comments on commit c874fcb

Please sign in to comment.