summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-10-03 19:51:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-10-03 19:51:20 +0200
commiteaf81540a6b73d41c9862024f0f4507cdfbfc584 (patch)
tree30143496df970b5d7d49d4d9bc0b91cf1f6ddf1a
parentc041a6eae368a11c97e1ce83e02716ab190de0d3 (diff)
i2cdetect: Send START without prior STOP
-rw-r--r--commandline/i2cdetect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commandline/i2cdetect.c b/commandline/i2cdetect.c
index f394ca6..2aa4475 100644
--- a/commandline/i2cdetect.c
+++ b/commandline/i2cdetect.c
@@ -30,11 +30,11 @@ int main(int argc, char **argv)
else
fputs(" --", stdout);
- i2c_stop();
}
fputs("\n", stdout);
+ i2c_stop();
i2c_deinit();
return 0;
}