gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parse +CBC properly (battery info, AT driver)


From: Bastien Nocera
Subject: Parse +CBC properly (battery info, AT driver)
Date: Fri, 06 Jul 2007 19:37:30 +0100

Heya,

The following patch should apply with plenty of fuzz. The old code was
trying to read the first character of buf.line2 as the battery status.

buf.line2 would look like:
+CBC: 1,37

"2" is also a valid battery status, it's mains powered without a
battery.

Patch attached.

-- 
Bastien Nocera <address@hidden> 

Attachment: gnokii-battery-reading-at.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]