Wykres commitów

13 Commity (c42c8b9f9d0806fc4f2dae1c9685895ea36eebc6)

Autor SHA1 Wiadomość Data
Wouter van Gulik c42c8b9f9d Fix 3 rx handling bugs; timeout, short read, out-of-sync.
When not plugging in the radio we expect to only see timeout errors.
However due to timeout being checked AFTER the read() call the len parameter
was updated and no longer was 0 returned.

If less then 4 was read (a short read) then uninitialized data was used,
for length and/or magic check.

If the magic byte does not match then the  rx buffer should be flushed before
trying again. Otherwise sync will probably never be achieved. This
solves the bug where plugging in the radio show continues streams of
magic packet errors. For me k5prog -Y -D now always works, while before
it could fail.
2023-12-18 22:32:46 +13:00
sq5bpf 6eb4ac3822 relax flash mode packet size limits to fix issue 6 2023-10-14 19:16:06 +02:00
sq5bpf 0365f94b01 remove length and offset settings for flash, accept flash mode packets with shorter length from some Lseng clone 2023-10-10 21:58:55 +02:00
sq5bpf c2b0d57a43 add -Wall to see compile warnings, and fix these warnings 2023-10-10 12:15:35 +02:00
sq5bpf 4817d020d1 add option to change the firmware string sent during flashing, changed the default string sent to something that is accepted by all bootloaders 2023-10-09 21:58:43 +02:00
sq5bpf 551d8a8cfe add an option to flash files smaller than 50kB if the user knows what he's doing and bump version to 0.6 2023-10-03 11:01:40 +02:00
sq5bpf d68ec83d92 fix flashing firmware larger than 0xe600 bytes 2023-09-27 18:26:55 +02:00
Daniel Caujolle-Bert 589787d3ec
Make it compile. 2023-07-29 02:02:50 +10:00
sq5bpf 03cc17bc44 Add offset and length options for flashing 2023-07-12 00:11:45 +02:00
aa 443c03cce2 fixed error preventing compile 2023-07-03 12:17:59 +08:00
sq5bpf a7db2d224c initial flash support 2023-06-16 14:55:26 +02:00
sq5bpf ee8c83ef17 add -B "brick my radio" option, make -W option more conservative 2023-05-25 22:08:32 +02:00
sq5bpf f2e5f2ab27 initial commit 2023-05-12 19:08:41 +02:00