Fix calculateCRC function
-
Remove the 4*operationalControlFieldExists()
from this loop as these bytes are included in thelen
variable which is subtracted -
Change calculateCRC function in order to first process the packets and header then the idle data and then the operational control field. Essentially add an similar calcilating crc loop that will calculate the last 4 bytes of the packet
array