mirror of
https://github.com/ole00/afterburner.git
synced 2024-09-27 00:55:02 +00:00
PC app: lunx serial port read tweak
This change seems to fix a weird issue where some of the lines were split in two lines. This could be reproduced when using 'i' command with ATF22V10C or ATF16V8B repeatedly.
This commit is contained in:
parent
f48513f05b
commit
ffa637eb8e
@ -51,7 +51,7 @@ To compile: gcc -g3 -O0 afterburner afterburner.c
|
|||||||
|
|
||||||
#include "serial_port.h"
|
#include "serial_port.h"
|
||||||
|
|
||||||
#define VERSION "v.0.4"
|
#define VERSION "v.0.4.1"
|
||||||
|
|
||||||
|
|
||||||
#define MAX_LINE 200
|
#define MAX_LINE 200
|
||||||
@ -598,8 +598,8 @@ static int waitForSerialPrompt(char* buf, int bufSize, int maxDelay) {
|
|||||||
if (maxDelay > 0) {
|
if (maxDelay > 0) {
|
||||||
/* WIN_API handles timeout itself */
|
/* WIN_API handles timeout itself */
|
||||||
#ifndef _USE_WIN_API_
|
#ifndef _USE_WIN_API_
|
||||||
usleep(3 * 1000);
|
usleep(10 * 1000);
|
||||||
maxDelay -= 3;
|
maxDelay -= 10;
|
||||||
#else
|
#else
|
||||||
maxDelay -= 30;
|
maxDelay -= 30;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user