[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-54
From: |
Daniele Forsi |
Subject: |
[SCM] libgnokii and core programs branch, master, updated. rel_0_6_29-541-g99f7963 |
Date: |
Sat, 04 Jan 2014 09:16:22 +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 99f7963d7c387e7a947c5abcc723072bac002d3a (commit)
from d27fc29fe2406cfedf2c4f51e0e6b5ac7cbbd018 (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=99f7963d7c387e7a947c5abcc723072bac002d3a
commit 99f7963d7c387e7a947c5abcc723072bac002d3a
Author: Daniele Forsi <address@hidden>
Date: Sat Jan 4 10:08:12 2014 +0100
Print debug message also when the pointer is NULL
And printing the raw value (as integer, because message[] contains
unsigned chars) is more useful for debugging than the converted
value that can be read by the caller.
diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index 51b0687..22cac4a 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -4495,10 +4495,10 @@ static gn_error NK6510_IncomingBattLevel(int
messagetype, unsigned char *message
dprintf("Incoming battery\n");
switch (message[3]) {
case 0x0B:
+ dprintf("Battery level %d\n", message[9]);
if (!data->battery_level) return GN_ERR_INTERNALERROR;
*(data->battery_unit) = GN_BU_Percentage;
*(data->battery_level) = message[9] * 100 /
state->driver.phone.max_battery_level;
- dprintf("Battery level %f\n", *(data->battery_level));
break;
default:
dprintf("%s: Unknown subtype 0x%02x\n", __FUNCTION__,
message[3]);
-----------------------------------------------------------------------
Summary of changes:
common/phones/nk6510.c | 2 +-
1 files changed, 1 insertions(+), 1 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-541-g99f7963,
Daniele Forsi <=