[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-52
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-52-g14da56d |
Date: |
Tue, 07 Sep 2010 20:04:06 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".
The branch, master has been updated
via 14da56d765bed194fcfcb2a562dfa8fe3001a70a (commit)
from c14cf3efd669a1710342755e55f0ab45e5a00e3c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=14da56d765bed194fcfcb2a562dfa8fe3001a70a
commit 14da56d765bed194fcfcb2a562dfa8fe3001a70a
Author: Daniele Forsi <address@hidden>
Date: Tue Sep 7 21:59:23 2010 +0200
Show debug messages about setting RTS/DTR and speed only when appropriate
diff --git a/common/device.c b/common/device.c
index 484bc77..b13117d 100644
--- a/common/device.c
+++ b/common/device.c
@@ -127,12 +127,11 @@ void device_reset(struct gn_statemachine *state)
void device_setdtrrts(int dtr, int rts, struct gn_statemachine *state)
{
- dprintf("Serial device: setting RTS to %s and DTR to %s\n", rts ?
"high" : "low", dtr ? "high" : "low");
-
switch (state->device.type) {
case GN_CT_DKU2:
case GN_CT_Serial:
case GN_CT_Infrared:
+ dprintf("Serial device: setting RTS to %s and DTR to %s\n", rts
? "high" : "low", dtr ? "high" : "low");
serial_setdtrrts(state->device.fd, dtr, rts, state);
break;
case GN_CT_Irda:
@@ -147,12 +146,11 @@ void device_setdtrrts(int dtr, int rts, struct
gn_statemachine *state)
void device_changespeed(int speed, struct gn_statemachine *state)
{
- dprintf("Serial device: setting speed to %d\n", speed);
-
switch (state->device.type) {
case GN_CT_DKU2:
case GN_CT_Serial:
case GN_CT_Infrared:
+ dprintf("Serial device: setting speed to %d\n", speed);
serial_changespeed(state->device.fd, speed, state);
break;
case GN_CT_Tekram:
-----------------------------------------------------------------------
Summary of changes:
common/device.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
hooks/post-receive
--
libgnokii and core programs
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-52-g14da56d,
Daniele Forsi <=