dead code: build_packet pre-loads preamble that gets overwritten #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wait-to-fix
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
daru/PICsense#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
build_packet sets dst_buffer[0]=0x0056, dst_buffer[1]=0x655a, then manchester_encode writes the full raw array starting at dst[0], overwriting both. The pre-load is dead code.
Fix: remove the dead pre-load lines.
Fixed in PR #14: removed the 3 dead lines (dst_buffer[0]=0x0056, dst_buffer[1]=0x655a) — manchester_encode overwrites them anyway since raw[] already contains the preamble.