FreeCalypso > hg > freecalypso-sw
comparison rvinterf/lowlevel/tfc139.c @ 985:8109185528c1
tfc139: new logic actually works
author | Mychaela Falconia <falcon@ivan.Harhan.ORG> |
---|---|
date | Sat, 12 Dec 2015 03:24:52 +0000 |
parents | 8c83777f856c |
children | 65418b391513 |
comparison
equal
deleted
inserted
replaced
984:8c83777f856c | 985:8109185528c1 |
---|---|
247 /* skip timestamp, check src and dest */ | 247 /* skip timestamp, check src and dest */ |
248 if (strncmp(rxpkt + 8, "SYSTPCO ", 8)) | 248 if (strncmp(rxpkt + 8, "SYSTPCO ", 8)) |
249 return; | 249 return; |
250 /* terminating NUL for sscanf */ | 250 /* terminating NUL for sscanf */ |
251 rxpkt[rxpkt_len] = '\0'; | 251 rxpkt[rxpkt_len] = '\0'; |
252 if (sscanf(rxpkt, format, &stackbase, &untouched) != 2) | 252 if (sscanf(rxpkt + 16, format, &stackbase, &untouched) != 2) |
253 return; | 253 return; |
254 /* success! */ | 254 /* success! */ |
255 sprintf(msgbuf, | 255 sprintf(msgbuf, |
256 "Parsed L1 stack location: base=0x%x, untouched=%u (0x%x)", | 256 "Parsed L1 stack location: base=0x%x, untouched=%u (0x%x)", |
257 stackbase, untouched, untouched); | 257 stackbase, untouched, untouched); |