Skip to content

Commit

Permalink
add debug flag
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron-goddard committed Dec 17, 2024
1 parent ff79e67 commit 721c996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ads1015.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ bool ADS1015::configure_adc(ads_mux_t mux) {
gain | mux |
ADS1015_REG_CONFIG_OS_SINGLE;

#ifdef VERBOSE
#ifdef DEBUG
printf("Config: %x\n", config);
#endif

Expand Down Expand Up @@ -119,7 +119,7 @@ uint16_t ADS1015::read_single_ended(uint8_t channel) {
if (read_register(ADS1015_REG_POINTER_CONVERT, val)) {
result = (val[0] << 8) | val[1];
result >>= 4;
#ifdef VERBOSE
#ifdef DEBUG
printf("ADC Value: %u\n", result);
#endif
} else {
Expand Down

0 comments on commit 721c996

Please sign in to comment.