Codec for an NRF24L01 based protocol

Revision:
2:4dd0a9382f0d
Parent:
1:c189b357fc3c
--- a/swtp_codec.cpp	Tue Aug 30 17:45:12 2011 +0000
+++ b/swtp_codec.cpp	Tue Aug 30 18:20:47 2011 +0000
@@ -56,7 +56,7 @@
  * @param packetSize Number of bytes in array
  * @param headerDataToFill Structure of PacketData to populate
  */
-void decodeHeaderPacket(uint8* packet, int packetSize, PacketData* headerDataToFill) {
+void decodePacket(uint8* packet, int packetSize, PacketData* headerDataToFill) {
 
     headerDataToFill->version         = (packet[0] & VERSION_MASK);
     headerDataToFill->isMessageHeader = (packet[0] & HEADER_PKT_IND_BIT);