[Ovmsdev] Volt/Ampera SOC and more
Michael Balzer
dexter at expeedo.de
Fri Nov 30 06:59:58 HKT 2012
Hi Michael,
Am 29.11.2012 20:15, schrieb Michael Jochum:
> v = (can_databuffer[1]+(unsigned int) can_databuffer[0] << 8);
That's an annoying C logic trap: + has precedence over <<.
v = can_databuffer[1]+((unsigned int) can_databuffer[0] << 8);
...should do.
Regards,
Michael
--
Michael Balzer * Paradestr. 8 * D-42107 Wuppertal
Fon 0202 / 272 2201 * Handy 0176 / 206 989 26
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dexter.vcf
Type: text/x-vcard
Size: 206 bytes
Desc: not available
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20121129/b96ba712/attachment-0002.vcf>
More information about the OvmsDev
mailing list