Skip to content

Phoenix 2026 spi fix#21

Merged
TimoWielink merged 3 commits into
Project-Owl:phoenix-2026from
TimoWielink:phoenix-2026-SPI-FIX
Jul 7, 2026
Merged

Phoenix 2026 spi fix#21
TimoWielink merged 3 commits into
Project-Owl:phoenix-2026from
TimoWielink:phoenix-2026-SPI-FIX

Conversation

@TimoWielink

Copy link
Copy Markdown
Member

Validate Route Packets
Battery Command Float Conversion
SPI Fix

Signed-off-by: TimoWielink <timowielink@gmail.com>
Signed-off-by: TimoWielink <timowielink@gmail.com>
Signed-off-by: TimoWielink <timowielink@gmail.com>
@TimoWielink
TimoWielink merged commit d2a8023 into Project-Owl:phoenix-2026 Jul 7, 2026
1 check passed
Comment thread src/routing/RouteJSON.h
Duid getOrigin(){
Duid originDuid;
std::copy(origin.begin(), origin.end(), originDuid.begin());
originDuid.fill(0);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change this and getDestination to an optional

Comment thread src/routing/RouteJSON.h
logdbg_ln("RREQ: %s", log.c_str());

const std::string& last = objPath[objPath.size()-1];
if (last.size() != DUID_LENGTH) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

validation should happen within a new class for Duid

Comment thread src/routing/RouteJSON.h
logerr_ln("RouteJSON missing origin/destination");
return;
}
origin = originPtr;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how does this compile?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

answer: std::string has an overload for char* (fo c_str) and char* is null terminated so the length doesn't need to be declared

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants