[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-526-gabc4bc1 |
Date: |
Thu, 02 May 2013 14:16:46 +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 abc4bc125f70828ff46064863dc6a514a8af0202 (commit)
from fd9733fc2e9f4254867739c7958f83697831bcc7 (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=abc4bc125f70828ff46064863dc6a514a8af0202
commit abc4bc125f70828ff46064863dc6a514a8af0202
Author: Daniele Forsi <address@hidden>
Date: Thu May 2 16:06:52 2013 +0200
Add "incoming" message. Remove extra newline.
diff --git a/common/phones/nk6510.c b/common/phones/nk6510.c
index 8bd61f4..8373609 100644
--- a/common/phones/nk6510.c
+++ b/common/phones/nk6510.c
@@ -4484,12 +4484,13 @@ static gn_error SetOperatorBitmap(gn_data *data, struct
gn_statemachine *state)
static gn_error NK6510_IncomingBattLevel(int messagetype, unsigned char
*message, int length, gn_data *data, struct gn_statemachine *state)
{
+ dprintf("Incoming battery\n");
switch (message[3]) {
case 0x0B:
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\n", *(data->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 | 3 ++-
1 files changed, 2 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-526-gabc4bc1,
Daniele Forsi <=