properly fill dummy arrays

This commit is contained in:
Alexey Starikovskiy
2023-09-21 07:36:41 +02:00
committed by Gwenhael Goavec-Merou
parent d3410e0e30
commit b10be9ae8a
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -1577,7 +1577,8 @@ int Xilinx::spi_wait(uint8_t cmd, uint8_t mask, uint8_t cond,
uint32_t timeout, bool verbose)
{
uint8_t rx[2];
uint8_t dummy[2] = {0xff};
uint8_t dummy[2];
memset(dummy, 0xff, sizeof(dummy));
uint8_t tmp;
uint8_t tx = McsParser::reverseByte(cmd);
uint32_t count = 0;