Update the displayed I2C on each get iteraction (not the same starting address). From Ryan VanSickle
This commit is contained in:
parent
745de760de
commit
f37d1c2a70
@ -908,3 +908,6 @@
|
||||
when using Telnet sessions. This was solved by adding CONFIG_NSH_ALTCONDEV:
|
||||
CONFIG_NSH_ALTCONDEV enables or disables the feature then, if enabled,
|
||||
CONFIG_NSH_CONDEV provides the alternative console device name (2014-5-5).
|
||||
* apps/system/i2c/i2c_get.c: Fix to show the updated register address on
|
||||
each fetch (vs. showing the same starting address each time). From
|
||||
Ryan VanSickle (2014-5-8).
|
||||
|
@ -164,7 +164,8 @@ int i2ccmd_get(FAR struct i2ctool_s *i2ctool, int argc, FAR char **argv)
|
||||
if (ret == OK)
|
||||
{
|
||||
i2ctool_printf(i2ctool, "READ Bus: %d Addr: %02x Subaddr: %02x Value: ",
|
||||
i2ctool->bus, i2ctool->addr, i2ctool->regaddr);
|
||||
i2ctool->bus, i2ctool->addr, regaddr);
|
||||
|
||||
if (i2ctool->width == 8)
|
||||
{
|
||||
i2ctool_printf(i2ctool, "%02x\n", result);
|
||||
|
Loading…
Reference in New Issue
Block a user