|
Console::log("Are you sure(13)?"); |
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;