Skip to content

Commit

Permalink
fix increase read timeout for flashing response
Browse files Browse the repository at this point in the history
  • Loading branch information
gouthamsk98 committed Nov 20, 2024
1 parent 5e3a79d commit ab0070f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/flasherV2/loader_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ export class MSPLoaderV2 extends SerialTransport {
};
let send = await Protocol.getFrameRaw(cmd);
await this.send(send);
let resRaw = await this.read(this.DEFAULT_TIMEOUT, 10);
let resRaw = await this.read(this.DEFAULT_TIMEOUT*2, 10);
let res = Protocol.getResponse(resRaw, cmd);
if (res.response == BSLResponse.BSL_ACK) {
this.debug("Data Programmed");
Expand Down
2 changes: 1 addition & 1 deletion src/flasherV2/transport_handler.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Section, IHexRecord } from "./protocol_handler";
export class SerialTransport {
baudrate = 9600;
buffer_size = 1024 * 1024; //1MB (max can be 16MB)
buffer_size = 1024 * 1024*16; //16MB (max can be 16MB)
private traceLog = "";
private lastTraceTime = Date.now();
public tracing = true;
Expand Down

0 comments on commit ab0070f

Please sign in to comment.