Skip to content

Commit

Permalink
missed ref
Browse files Browse the repository at this point in the history
  • Loading branch information
dyl committed Oct 25, 2023
1 parent d81fc2a commit 14bb2ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions general/src/ltc68041.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,10 +1181,10 @@ void LTC6804_stcomm(uint8_t len) //Length of data to be transmitted

wakeup_idle();
HAL_GPIO_WritePin(ltcfonig->gpio, ltcconfig->cs_pin, GPIO_PIN_RESET);
NERduino.writeSPI1(cmd, 4, ltcSPISettings);
HAL_SPI_Transmit(ltcconfig->spi, cmd, 4, HAL_MAX_DELAY);
for (int i = 0; i<len*3; i++)
{
HAL_SPI_Transmit(ltcconfig->spi, 0xFF 1, HAL_MAX_DELAY);
HAL_SPI_Transmit(ltcconfig->spi, 0xFF, 1, HAL_MAX_DELAY);
}
HAL_GPIO_WritePin(ltcfonig->gpio, ltcconfig->cs_pin, GPIO_PIN_SET);
}
Expand Down

0 comments on commit 14bb2ca

Please sign in to comment.