Commit Graph

13 Commits

Author SHA1 Message Date
Yannic Schröder
d524211c2a Clean exit of serialdump when hitting Ctrl-C
Ctrl-C is the best way to close serialdump after using make login.
With a clean exit it will signal to make that the make run was successful.
2016-09-20 14:18:21 +02:00
Yannic Schröder
9e080e8aa5 Terminate serialdump when serial device disconnects
The running serialdump does not recover from a disconnected device but
runs indefinitely with outputting anything. This makes it quit with a
proper error message.
2016-09-20 14:16:40 +02:00
Yannic Schröder
2974b796d1 Initialize serialdump termios properly
termios i_flags were not initialized and could be set to arbitrary values
this resulted in unpredicted behaviour of the output like additional
newlines
2016-09-20 14:14:14 +02:00
Tommy Sparber
64c66efd7f Fix serialdump.c warnings (clang)
Using clang (on osx) yields to some warnings
(conversion between signed/unsigned, unused variable)
which gcc would only produce when used with -Wall.
This commit fixes those.
2015-10-28 17:46:59 +11:00
Moritz 'Morty' Strübe
e38bc3bdcd Revert binary: serialdump-linux 2015-05-18 15:30:05 +02:00
Moritz 'Morty' Strübe
d8639df64b Fix EINVAL handling and O_DIRECT 2015-05-18 15:24:18 +02:00
Moritz 'Morty' Strübe
16f7c2448c Improve error message 2015-05-11 10:43:05 +02:00
Moritz 'Morty' Strübe
1e359d2324 Improve O_SYNC logic 2015-05-11 10:43:04 +02:00
Moritz 'Morty' Strübe
425c58e79d Set default speed to 115200 2015-05-11 10:43:04 +02:00
Moritz 'Morty' Strübe
d26afef966 Fix serialdump.c
_GNU_SOURCE is needed for O_DIRECT
time.h is needed for strftime
2015-05-11 10:43:04 +02:00
Moritz 'Morty' Strübe
016bcdb8a8 Fix indentation 2015-05-11 10:42:54 +02:00
Niclas Finne
40595ad5c7 Support for serialdump on MacOS X. Patch by Laurent Deru. 2012-05-07 13:16:27 +02:00
adamdunkels
d28b27f031 Source code for the serialdump tool 2008-08-21 21:59:19 +00:00