diff options
author | Yuval Peress <peress@chromium.org> | 2021-03-05 12:11:41 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-03-05 21:52:18 +0000 |
commit | 66bb29e13fdd61733c411b12e584cd5007ceb47b (patch) | |
tree | e03ffd91015590ed91aba05c48ee82a126481a41 /common | |
parent | 0cb6fbb4a5391c389abc56346e7e1ccfeaa08708 (diff) | |
download | chrome-ec-66bb29e13fdd61733c411b12e584cd5007ceb47b.tar.gz |
common: adc: Add units to the ADC reading output
Improved readability for people newly looking at these values.
BRANCH=none
BUG=none
TEST=build/flash volteer and run adc command.
Signed-off-by: Yuval Peress <peress@chromium.org>
Change-Id: Idb90ac07d74f067c38ac7825a7c6e7f1d2ec94ba
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2739707
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/adc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/adc.c b/common/adc.c index 5407de6cfe..f367ffed5b 100644 --- a/common/adc.c +++ b/common/adc.c @@ -38,7 +38,7 @@ static int print_one_adc(int channel) v = adc_read_channel(channel); if (v == ADC_READ_ERROR) return EC_ERROR_UNKNOWN; - ccprintf(" %s = %d\n", adc_channels[channel].name, v); + ccprintf(" %s = %d mV\n", adc_channels[channel].name, v); return EC_SUCCESS; } |