Skip to content
Snippets Groups Projects
Commit 4d10ea88 authored by Michael DM Dryden's avatar Michael DM Dryden
Browse files

Fixed typo with ADS1255 MUX setting function (ads1255_mux()).

parent 1f6017f7
Branches
Tags
No related merge requests found
......@@ -109,7 +109,7 @@ void ads1255_setup(uint8_t buff, uint8_t rate, uint8_t pga){
void ads1255_mux(uint8_t channel){
#if BOARD_VER_MAJOR == 1 && BOARD_VER_MINOR == 2
uint8_t command_buffer[6] = {0x51,0x03,channel}; // write reg 1, write 1 register, MUX AIN0
uint8_t command_buffer[6] = {0x51,0x0,channel}; // write reg 1, write 1 register, MUX AIN0
usart_spi_select_device(&USARTE1, &spi_device_conf);
usart_spi_transmit(&USARTE1, ADS_SDATAC);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment