bug fix
This commit is contained in:
+2
-2
@@ -266,7 +266,7 @@ static void ZM_update_instruction_callback(uint8_t ins_type, uint8_t ins_len, ui
|
||||
static void ADC_SPI(uint8_t ADCin) {
|
||||
// read ADC data
|
||||
PIN_setOutputValue(pin_handle, ADC_CS, 0); // ADC_CS HIGH
|
||||
ZM_spi_transaction(SPI_ADC_TX_SIZE, spi_ADCrxbuf, spi_ADCrxbuf);
|
||||
// ZM_spi_transaction(SPI_ADC_TX_SIZE, spi_ADCrxbuf, spi_ADCrxbuf);
|
||||
PIN_setOutputValue(pin_handle, ADC_CS, 1); // ADC_CS HIGH
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ static void DAC_outputV(uint8_t command, uint8_t v1, uint8_t v2) {
|
||||
}
|
||||
|
||||
PIN_setOutputValue(pin_handle, DAC_CS, 0); // DAC_CS LOW
|
||||
ZM_spi_transaction(SPI_DAC_SIZE, spi_DACtxbuf, spiBackupRx);
|
||||
DAC_spi_transaction(SPI_DAC_SIZE, spi_DACtxbuf, spiBackupRx);
|
||||
PIN_setOutputValue(pin_handle, DAC_CS, 1); // DAC_CS HIGH
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user