Libraries to support working with GMLAN - General Motors CAN BUS network in most of their vehicles between 2007-present day. Please note this is a work in progress and not guaranteed to be correct, use at your own risk! Read commit logs / subscribe to see what has been added, it's a work in progress after all ;)

Revision:
9:4af02032daeb
Parent:
8:bc97fa5d306e
--- a/GMLAN.cpp	Mon Apr 08 10:29:31 2013 +0000
+++ b/GMLAN.cpp	Mon Apr 08 11:31:12 2013 +0000
@@ -148,7 +148,9 @@
     return buffer.generate();
 }
 void GMLAN_11Bit_Request::processFrame(CANMessage msg) {
-    if (((msg.id & 0xFF) == (id & 0xFF)) && (request_state == GMLAN_STATE_AWAITING_REPLY)) {
+    if (((msg.id & 0xFF) == (id & 0xFF)) && 
+        ((request_state == GMLAN_STATE_AWAITING_REPLY) || (request_state == GMLAN_STATE_AWAITING_FC))
+    ) {
         // Only handle requests we've instigated
         char datatochars [8];
         memcpy(datatochars, msg.data, 8);