Commit e3610c9
Fix issue "RX Serial not found", missing bootloader (ExpressLRS#717)
I hit an issue on mnibus f4, the ExpressLRS-Configurator
can't flash the elrs binary due to not able to detect bootloader.
The issue is cause by in correct parsing of the delimiter
when a line is broken into two separate serial reads.
This code in question is:
r = buf + data[:offset]
It should be:
r = (buf + data)[:offset]
I also notice duplicated code to handle one read vs more
than one read of a line. I clean up and unify the duplicated
code.
With this change, I verify the elrs firmware can be upload correctly.
Co-authored-by: Chris Li <chris@mini>1 parent e820af5 commit e3610c9
1 file changed
Lines changed: 15 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
36 | 50 | | |
37 | 51 | | |
38 | 52 | | |
| |||
41 | 55 | | |
42 | 56 | | |
43 | 57 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments