diff options
| author | Mingjie Shen <[email protected]> | 2023-06-13 17:07:36 -0400 |
|---|---|---|
| committer | Man, Jianting (Meco) <[email protected]> | 2023-06-13 17:47:54 -0400 |
| commit | 177f3d4056512b3979fe599042aea8ac2bf5234f (patch) | |
| tree | c7e5456afbf730f86636beec6f9af79fbc8608ee /components/drivers | |
| parent | aa4aeedb745cc4cb07ad9afb76b19641f968ff28 (diff) | |
[adc] remove dead code
The variable result_str is never used after this assignment.
Diffstat (limited to 'components/drivers')
| -rw-r--r-- | components/drivers/misc/adc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/components/drivers/misc/adc.c b/components/drivers/misc/adc.c index 0f71e096f2..4a580b3280 100644 --- a/components/drivers/misc/adc.c +++ b/components/drivers/misc/adc.c @@ -265,7 +265,6 @@ static int adc(int argc, char **argv) if(argc == 3) { voltage = rt_adc_voltage(adc_device, atoi(argv[2])); - result_str = (result == RT_EOK) ? "success" : "failure"; rt_kprintf("%s channel %d voltage is %d.%03dV \n", adc_device->parent.parent.name, (rt_base_t)atoi(argv[2]), voltage / 1000, voltage % 1000); } else |
