updates for new dle parser API
Some checks failed
EIVE/eive-obsw/pipeline/head There was a failure building this commit

This commit is contained in:
2022-04-09 15:38:09 +02:00
parent 808e01dfd3
commit d00cb6d4a5
7 changed files with 20 additions and 11 deletions

View File

@@ -290,9 +290,13 @@ int UartTestClass::prepareScexCmd(scex::ScexCmds cmd, bool tempCheck, uint8_t* c
return 0;
}
void UartTestClass::foundDlePacketHandler(uint8_t* packet, size_t len, void* args) {
UartTestClass* obj = reinterpret_cast<UartTestClass*>(args);
obj->handleFoundDlePacket(packet, len);
void UartTestClass::foundDlePacketHandler(const DleParser::Context& ctx) {
UartTestClass* obj = reinterpret_cast<UartTestClass*>(ctx.userArgs);
if (ctx.getType() == DleParser::ContextType::PACKET_FOUND) {
obj->handleFoundDlePacket(ctx.decodedPacket.first, ctx.decodedPacket.second);
} else {
DleParser::defaultErrorHandler(ctx.error.first, ctx.error.second);
}
}
void UartTestClass::handleFoundDlePacket(uint8_t* packet, size_t len) {