undo git's stupidness

This commit is contained in:
CreateSource 2025-03-16 15:09:37 -04:00
parent dd4fa7983f
commit a4bbbd8628
2 changed files with 5 additions and 6 deletions

View file

@ -142,4 +142,4 @@
"C_Cpp_Runner.showCompilationTime": false, "C_Cpp_Runner.showCompilationTime": false,
"C_Cpp_Runner.useLinkTimeOptimization": false, "C_Cpp_Runner.useLinkTimeOptimization": false,
"C_Cpp_Runner.msvcSecureNoWarnings": false "C_Cpp_Runner.msvcSecureNoWarnings": false
} }

View file

@ -144,7 +144,6 @@ UARTError TRKReadUARTPoll(u8* arg0)
UARTError readErr = 4; UARTError readErr = 4;
s32 cnt; s32 cnt;
var_r29 = 4;
if (gReadPos >= gReadCount) { if (gReadPos >= gReadCount) {
gReadPos = 0; gReadPos = 0;
cnt = gReadCount = TRKPollUART(); cnt = gReadCount = TRKPollUART();
@ -152,17 +151,17 @@ UARTError TRKReadUARTPoll(u8* arg0)
if (cnt > BUFF_LEN) { if (cnt > BUFF_LEN) {
gReadCount = BUFF_LEN; gReadCount = BUFF_LEN;
} }
var_r29 = TRKReadUARTN(gReadBuf, gReadCount); readErr = TRKReadUARTN(gReadBuf, gReadCount);
if (var_r29 != 0) { if (readErr != 0) {
gReadCount = 0; gReadCount = 0;
} }
} }
} }
if (gReadPos < gReadCount) { if (gReadPos < gReadCount) {
*arg0 = gReadBuf[gReadPos++]; *arg0 = gReadBuf[gReadPos++];
var_r29 = 0; readErr = 0;
} }
return var_r29; return readErr;
} }
void ReserveEXI2Port(void) { gDBCommTable.open_func(); } void ReserveEXI2Port(void) { gDBCommTable.open_func(); }