This data corruption problem is very difficult. Just changing the code a little bit changes whether the problem even happens and what is affected. I need these changes in the main branch so I can operate with the extra debug code always available and turned on. Everything is setup such that if M100 is turned off or DEBUG(ECHO) is turned off, the code is not affected. M100 has been made a little bit more inteligent so it can display the serial command buffers in a more meaningful way (because the data corruption seems to often times end up in that area).
|
|
||
41 |
|
41 |
|
42 |
|
42 |
|
43 |
|
43 |
|
44 |
|
|
|
|
44 |
|
|
45 |
|
45 |
|
46 |
|
46 |
|
47 |
|
47 |
|
|
|
||
52 |
|
52 |
|
53 |
|
53 |
|
54 |
|
54 |
|
55 |
|
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|
|
56 |
|
58 |
|
57 |
|
59 |
|
58 |
|
60 |
|
|
|
||
78 |
|
80 |
|
79 |
|
81 |
|
80 |
|
82 |
|
81 |
|
|
|
|
83 |
|
|
82 |
|
84 |
|
83 |
|
85 |
|
84 |
|
86 |
|
|
|
||
118 |
|
120 |
|
119 |
|
121 |
|
120 |
|
122 |
|
121 |
|
|
|
122 |
|
|
|
|
123 |
|
|
|
124 |
|
|
|
125 |
|
|
|
126 |
|
|
|
127 |
|
|
|
128 |
|
|
|
129 |
|
|
|
130 |
|
|
|
131 |
|
|
|
132 |
|
|
|
133 |
|
|
|
134 |
|
|
|
135 |
|
|
|
136 |
|
|
123 |
|
137 |
|
124 |
|
138 |
|
125 |
|
139 |
|
|
|
||
220 |
|
234 |
|
221 |
|
235 |
|
222 |
|
236 |
|
223 |
|
|
|
|
237 |
|
|
224 |
|
238 |
|
225 |
|
239 |
|
226 |
|
240 |
|
|
|
||
288 |
|
302 |
|
289 |
|
303 |
|
290 |
|
304 |
|
|
305 |
|
|
291 |
|
306 |
|
|
307 |
|
|
292 |
|
308 |
|
293 |
|
309 |
|
294 |
|
310 |
|
|
|
||
284 |
|
284 |
|
285 |
|
285 |
|
286 |
|
286 |
|
|
287 |
|
|
287 |
|
288 |
|
288 |
|
289 |
|
289 |
|
290 |
|
|
|
||
359 |
|
360 |
|
360 |
|
361 |
|
361 |
|
362 |
|
|
363 |
|
|
|
364 |
|
|
|
365 |
|
|
362 |
|
366 |
|
|
367 |
|
|
363 |
|
368 |
|
364 |
|
369 |
|
365 |
|
370 |
|
|
|
||
9561 |
|
9566 |
|
9562 |
|
9567 |
|
9563 |
|
9568 |
|
|
9569 |
|
|
|
9570 |
|
|
|
9571 |
|
|
|
9572 |
|
|
9564 |
|
9573 |
|
9565 |
|
9574 |
|
9566 |
|
9575 |
|
|
|
||
1330 |
|
1330 |
|
1331 |
|
1331 |
|
1332 |
|
1332 |
|
1333 |
|
|
|
1334 |
|
|
|
|
1333 |
|
|
|
1334 |
|
|
1335 |
|
1335 |
|
1336 |
|
|
|
1337 |
|
|
|
|
1336 |
|
|
|
1337 |
|
|
|
1338 |
|
|
|
1339 |
|
|
1338 |
|
1340 |
|
1339 |
|
|
|
1340 |
|
|
|
|
1341 |
|
|
|
1342 |
|
|
|
1343 |
|
|
|
1344 |
|
|
1341 |
|
1345 |
|
1342 |
|
|
|
1343 |
|
|
|
|
1346 |
|
|
|
1347 |
|
|
1344 |
|
1348 |
|
1345 |
|
1349 |
|
1346 |
|
1350 |
|
|
|
||
102 |
|
102 |
|
103 |
|
103 |
|
104 |
|
104 |
|
105 |
|
|
|
106 |
|
|
|
107 |
|
105 |
|
108 |
|
106 |
|
109 |
|
107 |
|
|
|
||
117 |
|
115 |
|
118 |
|
116 |
|
119 |
|
117 |
|
|
118 |
|
|
|
119 |
|
|
|
120 |
|
|
|
121 |
|
|
120 |
|
122 |
|
121 |
|
123 |
|
122 |
|
124 |
|
|
|
||
303 |
|
305 |
|
304 |
|
306 |
|
305 |
|
307 |
|
306 |
|
|
|
|
308 |
|
|
307 |
|
309 |
|
308 |
|
310 |
|
309 |
|
311 |
|
|
|
||
378 |
|
380 |
|
379 |
|
381 |
|
380 |
|
382 |
|
381 |
|
|
|
382 |
|
|
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
|
386 |
|
|
|
387 |
|
|
|
388 |
|
|
|
389 |
|
|
|
390 |
|
|
|
391 |
|
|
|
392 |
|
|
|
393 |
|
|
|
394 |
|
|
|
395 |
|
|
|
396 |
|
|
|
397 |
|
|
|
398 |
|
|
|
|
383 |
|
|
|
384 |
|
|
|
385 |
|
|
399 |
|
386 |
|
400 |
|
387 |
|
401 |
|
388 |
|
|
|
||
567 |
|
554 |
|
568 |
|
555 |
|
569 |
|
556 |
|
570 |
|
|
|
|
557 |
|
|
571 |
|
558 |
|
572 |
|
559 |
|
573 |
|
560 |
|
|
|
||
692 |
|
679 |
|
693 |
|
680 |
|
694 |
|
681 |
|
695 |
|
|
|
696 |
|
|
|
697 |
|
|
|
698 |
|
|
|
699 |
|
|
|
|
682 |
|
|
|
683 |
|
|
|
684 |
|
|
700 |
|
685 |
|
701 |
|
686 |
|
702 |
|
687 |
|
|
|
||
997 |
|
982 |
|
998 |
|
983 |
|
999 |
|
984 |
|
1000 |
|
|
|
|
985 |
|
|
|
986 |
|
|
1001 |
|
987 |
|
1002 |
|
988 |
|
1003 |
|
|
|
1004 |
|
989 |
|
1005 |
|
990 |
|
1006 |
|
|
|
1007 |
|
991 |
|
|
992 |
|
|
|
993 |
|
|
1008 |
|
994 |
|
1009 |
|
|
|
1010 |
|
995 |
|
1011 |
|
|
|
|
996 |
|
|
|
997 |
|
|
|
998 |
|
|
|
999 |
|
|
|
1000 |
|
|
|
1001 |
|
|
|
1002 |
|
|
|
1003 |
|
|
|
1004 |
|
|
1012 |
|
1005 |
|
1013 |
|
1006 |
|
1014 |
|
1007 |
|
|
|
||
1017 |
|
1010 |
|
1018 |
|
1011 |
|
1019 |
|
1012 |
|
1020 |
|
|
|
1021 |
|
|
|
|
1013 |
|
|
|
1014 |
|
|
1022 |
|
1015 |
|
1023 |
|
1016 |
|
1024 |
|
1017 |
|
|
|
||
1032 |
|
1025 |
|
1033 |
|
1026 |
|
1034 |
|
1027 |
|
|
1028 |
|
|
|
1029 |
|
|
|
1030 |
|
|
|
1031 |
|
|
|
1032 |
|
|
|
1033 |
|
|
|
1034 |
|
|
|
1035 |
|
|
1035 |
|
1036 |
|
1036 |
|
1037 |
|
1037 |
|
1038 |
|
1038 |
|
1039 |
|
1039 |
|
1040 |
|
|
1041 |
|
|
|
1042 |
|
|
|
1043 |
|
|
|
1044 |
|
|
|
1045 |
|
|
|
1046 |
|
|
|
1047 |
|
|
|
1048 |
|
|
1040 |
|
1049 |
|
1041 |
|
1050 |
|
1042 |
|
1051 |
|
|
|
||
1068 |
|
1077 |
|
1069 |
|
1078 |
|
1070 |
|
1079 |
|
1071 |
|
|
|
1072 |
|
|
|
1073 |
|
|
|
1074 |
|
|
|
1075 |
|
|
|
1076 |
|
1080 |
|
1077 |
|
1081 |
|
1078 |
|
1082 |
|
|
|
||
1365 |
|
1369 |
|
1366 |
|
1370 |
|
1367 |
|
1371 |
|
1368 |
|
|
|
1369 |
|
|
|
1370 |
|
|
|
|
1372 |
|
|
|
1373 |
|
|
1371 |
|
1374 |
|
1372 |
|
1375 |
|
1373 |
|
1376 |
|
|
|
||
1448 |
|
1451 |
|
1449 |
|
1452 |
|
1450 |
|
1453 |
|
1451 |
|
|
|
|
1454 |
|
|
1452 |
|
1455 |
|
1453 |
|
1456 |
|
1454 |
|
1457 |
|
|
|
||
1466 |
|
1469 |
|
1467 |
|
1470 |
|
1468 |
|
1471 |
|
1469 |
|
|
|
1470 |
|
|
|
1471 |
|
|
|
1472 |
|
|
|
|
1472 |
|
|
|
1473 |
|
|
|
1474 |
|
|
|
1475 |
|
|
1473 |
|
1476 |
|
1474 |
|
1477 |
|
1475 |
|
1478 |
|
1476 |
|
|
|
1477 |
|
|
|
1478 |
|
|
|
|
1479 |
|
|
|
1480 |
|
|
|
1481 |
|
|
1479 |
|
1482 |
|
1480 |
|
1483 |
|
1481 |
|
1484 |
|
|
|
||
1494 |
|
1497 |
|
1495 |
|
1498 |
|
1496 |
|
1499 |
|
1497 |
|
|
|
|
1500 |
|
|
1498 |
|
1501 |
|
1499 |
|
1502 |
|
1500 |
|
|
|
|
1503 |
|
|
1501 |
|
1504 |
|
1502 |
|
1505 |
|
1503 |
|
1506 |
|
1504 |
|
1507 |
|
1505 |
|
|
|
1506 |
|
|
|
1507 |
|
|
|
1508 |
|
|
|
|
1508 |
|
|
|
1509 |
|
|
|
1510 |
|
|
|
1511 |
|
|
1509 |
|
1512 |
|
1510 |
|
1513 |
|
1511 |
|
1514 |
|
1512 |
|
1515 |
|
1513 |
|
|
|
1514 |
|
|
|
1515 |
|
|
|
1516 |
|
|
|
|
1516 |
|
|
|
1517 |
|
|
|
1518 |
|
|
|
1519 |
|
|
1517 |
|
1520 |
|
1518 |
|
1521 |
|
1519 |
|
1522 |
|
|
|
||
1526 |
|
1529 |
|
1527 |
|
1530 |
|
1528 |
|
1531 |
|
1529 |
|
|
|
|
1532 |
|
|
1530 |
|
1533 |
|
1531 |
|
|
|
|
1534 |
|
|
1532 |
|
1535 |
|
1533 |
|
1536 |
|
1534 |
|
|
|
|
1537 |
|
|
1535 |
|
1538 |
|
1536 |
|
|
|
|
1539 |
|
|
1537 |
|
1540 |
|
1538 |
|
1541 |
|
1539 |
|
1542 |
|
|
|
||
1601 |
|
1604 |
|
1602 |
|
1605 |
|
1603 |
|
1606 |
|
1604 |
|
|
|
1605 |
|
|
|
1606 |
|
|
|
|
1607 |
|
|
|
1608 |
|
|
|
1609 |
|
|
1607 |
|
1610 |
|
1608 |
|
1611 |
|
1609 |
|
1612 |
|
|
|
||
1611 |
|
1614 |
|
1612 |
|
1615 |
|
1613 |
|
1616 |
|
1614 |
|
|
|
1615 |
|
|
|
1616 |
|
|
|
1617 |
|
|
|
|
1617 |
|
|
|
1618 |
|
|
|
1619 |
|
|
|
1620 |
|
|
1618 |
|
1621 |
|
1619 |
|
1622 |
|
1620 |
|
1623 |
|