Fix frament idetification
Rob Hartill
5 years ago
21 | 21 | * Boston, MA 02110-1301, USA. |
22 | 22 | */ |
23 | 23 | /* |
24 | * Version 0.9.1v (10 Jan 2019) | |
25 | * Modification (to this file) made by Rob0101 | |
26 | * Fixed marking marking messages with K,F,C - One case had a 'C' marked as a 'K' | |
24 | 27 | * Version 0.9.0v (22 May 2018) |
25 | 28 | * Modification (to this file) made by Bruce Quinton (zanoroy@gmail.com) |
26 | 29 | * - Addded Define at top of file to modify the way missed group messages are reported in the debug output (default is 1; report missed capcodes on the same line) |
511 | 514 | // char buf[1024], *message; |
512 | 515 | char message[1024]; |
513 | 516 | int currentChar = 0; |
514 | char frag_flag = 'K'; | |
517 | char frag_flag = '?'; | |
515 | 518 | |
516 | 519 | int frag = (phaseptr[mw1] >> 11) & 0x03; |
517 | int cont = ( phaseptr[mw1] >> 0x0A ) & 0x01; | |
518 | ||
519 | if (cont == 1) frag_flag = 'F'; | |
520 | if (cont == 0 && frag == 0) frag_flag = 'C'; | |
521 | ||
520 | int cont = (phaseptr[mw1] >> 0x0A) & 0x01; | |
521 | ||
522 | if (cont == 0 && frag == 3) frag_flag = 'K'; // complete, ready to send | |
523 | if (cont == 0 && frag != 3) frag_flag = 'C'; // incomplete until appended to 1 or more 'F's | |
524 | if (cont == 1 ) frag_flag = 'F'; // incomplete until a 'C' fragment is appended | |
525 | ||
522 | 526 | mw1++; |
523 | 527 | |
524 | 528 | for (i = mw1; i <= mw2; i++) { |