this check is sufficient
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good
This commit is contained in:
parent
800cabb8a1
commit
5c32114bdb
@ -1080,7 +1080,7 @@ class WriteMemory : public ploc::SpTcBase {
|
|||||||
|
|
||||||
ReturnValue_t buildPacket(ccsds::SequenceFlags seqFlags, uint16_t sequenceCount, uint8_t memoryId,
|
ReturnValue_t buildPacket(ccsds::SequenceFlags seqFlags, uint16_t sequenceCount, uint8_t memoryId,
|
||||||
uint32_t startAddress, uint16_t length, uint8_t* updateData) {
|
uint32_t startAddress, uint16_t length, uint8_t* updateData) {
|
||||||
if (length > CHUNK_MAX + 1) {
|
if (length > CHUNK_MAX) {
|
||||||
sif::error << "WriteMemory::WriteMemory: Invalid length" << std::endl;
|
sif::error << "WriteMemory::WriteMemory: Invalid length" << std::endl;
|
||||||
return SerializeIF::BUFFER_TOO_SHORT;
|
return SerializeIF::BUFFER_TOO_SHORT;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user