samples: shields: npm6001_ek: remove dead assignment
The voltage gets assigned by regulator_get_voltage, code was likely a copy&paste from set voltage command. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
ffdf85ed30
commit
9c27fabba3
1 changed files with 0 additions and 2 deletions
|
@ -191,8 +191,6 @@ static int cmd_regulator_get(const struct shell *sh, size_t argc, char **argv)
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
volt_uv = (int32_t)strtoul(argv[1], NULL, 10) * 1000;
|
||||
|
||||
ret = regulator_get_voltage(dev, &volt_uv);
|
||||
if (ret < 0) {
|
||||
shell_error(sh, "Could not get voltage (%d)", ret);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue