mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
system/i2c/i2c_main.c: fix a backward comparison. Noted by Jakob Haufe.
This commit is contained in:
parent
d7d541e2d9
commit
e678211436
2 changed files with 2 additions and 2 deletions
|
|
@ -207,7 +207,7 @@ List buses: bus [OPTIONS]
|
|||
This command will simply list all of the configured I2C buses and indicate
|
||||
which are supported by the driver and which are not:
|
||||
|
||||
BUS EXISTS?
|
||||
BUS EXISTS?
|
||||
Bus 1: YES
|
||||
Bus 2: NO
|
||||
|
||||
|
|
|
|||
|
|
@ -365,7 +365,7 @@ int i2c_main(int argc, char *argv[])
|
|||
g_i2ctool.addr = CONFIG_I2CTOOL_MINADDR;
|
||||
}
|
||||
|
||||
if (g_i2ctool.regaddr < CONFIG_I2CTOOL_MAXREGADDR)
|
||||
if (g_i2ctool.regaddr > CONFIG_I2CTOOL_MAXREGADDR)
|
||||
{
|
||||
g_i2ctool.regaddr = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue