It's a small problem. When you send the EraseSlot command '18 1 8 1', you will get a response '18 2 X'. The 'X' is a value in the memory address and depends on the last response.
The reason of this issue is that the payload_size is set to 1, but actually there is no payload for this command. If 'X' indicates there is an error, no worry.
To solve this issue, simply add:
payload_data[0] = NO_ERROR;
https://github.com/DelfiSpace/DelfiPQcore/blob/9e15f6c53f2400e0761cb6f53432710689a95594/SoftwareUpdateService.cpp#L151
It's a small problem. When you send the EraseSlot command '18 1 8 1', you will get a response '18 2 X'. The 'X' is a value in the memory address and depends on the last response.
The reason of this issue is that the payload_size is set to 1, but actually there is no payload for this command. If 'X' indicates there is an error, no worry.
To solve this issue, simply add: payload_data[0] = NO_ERROR;