Skip to content

Commit

Permalink
fix panda bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Firmware Batman committed Aug 29, 2017
1 parent 8b6c441 commit 37cba94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boardesp/proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static int ICACHE_FLASH_ATTR __spi_comm(char *dat, int len, uint32_t *recvData,

// got response, 0x40 works, 0x44 does not
spiData.data = recvData+1;
spiData.dataLen = (length+3)&(~4); // recvDataLen;
spiData.dataLen = (length+3)&(~3); // recvDataLen;
if(SPIMasterRecvData(SpiNum_HSPI, &spiData) == -1) {
// TODO: Handle gracefully. Maybe retry if payload failed.
os_printf("SPI: Failed to recv payload\n");
Expand Down

0 comments on commit 37cba94

Please sign in to comment.