Skip to content

Commit

Permalink
Update main.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbrew committed Aug 5, 2024
1 parent a6e2f5f commit 97b49ab
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Firmware/nrf5340/cpuapp/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,11 @@ static int setupadc(ADS131M08 * adc) {
#if CONFIG_USE_ADS131M08

configureSPS(*&adc, SPS_250_OSR);
// if(adc->writeReg(ADS131_CLOCK,0b1111111100011111)){ //< Clock register (page 55 in datasheet)
// //LOG_INF("ADS131_CLOCK register successfully configured");
// } else {
// LOG_ERR("***ERROR: Writing ADS131_CLOCK register.");
// }
if(adc->writeReg(ADS131_CLOCK,0b1111111100011111)){ //< Clock register (page 55 in datasheet)
//LOG_INF("ADS131_CLOCK register successfully configured");
} else {
LOG_ERR("***ERROR: Writing ADS131_CLOCK register.");
}
k_msleep(10);
if(adc->setGain(32)){ //< Gain Setting, 1-128
//LOG_INF("ADC Gain properly set to 32");
Expand Down

0 comments on commit 97b49ab

Please sign in to comment.