PLOC MPSoC read file, fix write file #633

Merged
meggert merged 43 commits from ploc_mpsoc_read_file_2 into v2.1.0-dev 2023-05-19 10:05:41 +02:00
Showing only changes of commit b39e448ab5 - Show all commits

View File

@ -419,18 +419,6 @@ class FlashFclose : public ploc::SpTcBase {
public:
FlashFclose(ploc::SpTcParams params, uint16_t sequenceCount)
: ploc::SpTcBase(params, apid::TC_FLASHFCLOSE, sequenceCount) {}
ReturnValue_t createPacket(std::string filename) {
size_t nameSize = filename.size();
spParams.setFullPayloadLen(nameSize + sizeof(NULL_TERMINATOR) + CRC_SIZE);
ReturnValue_t result = checkPayloadLen();
if (result != returnvalue::OK) {
return result;
}
std::memcpy(payloadStart, filename.c_str(), nameSize);
*(payloadStart + nameSize) = NULL_TERMINATOR;
return calcAndSetCrc();
}
};
/**