almost ready but have IWDG reset when trying to send data over RS-232 in CANbus flooding

This commit is contained in:
2024-09-26 17:53:16 +03:00
parent 03772fce3a
commit b9942f2e9f
19 changed files with 388 additions and 188 deletions

View File

@@ -64,8 +64,6 @@ static char *_2str(uint32_t val, uint8_t minus){
uint32_t x = val / 10;
*(--bufptr) = (val - 10*x) + '0';
val = x;
//*(--bufptr) = val % 10 + '0';
//val /= 10;
}
}
if(minus) *(--bufptr) = '-';
@@ -257,8 +255,8 @@ const char *getint(const char *txt, int32_t *I){
int32_t sign = 1;
uint32_t U;
if(*s == '-'){
sign = -1;
++s;
sign = -1;
++s;
}
const char *nxt = getnum(s, &U);
if(nxt == s) return txt;