Skip to content

Commit

Permalink
Merge pull request #28 from OzFalcon/correct_control_and_checksum_bytes
Browse files Browse the repository at this point in the history
Correct Control & Checksum bytes
  • Loading branch information
katie-snow committed Apr 14, 2016
2 parents 8673f7c + 6a8eff1 commit c46e831
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libs/ipac.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,10 @@ void updatePre2015IPAC2Board (json_object *jobj, unsigned char* barray)
unsigned char header[4] = {0x50, 0xdd, 0x00, 0x00};
memcpy (barray, &header, sizeof(header));

/* Checksum data - Redundant? */
barray[65] = 0x00;
/* Control data */
barray[65] = 0x29;
barray[66] = 0x00;

json_object_object_get_ex(jobj, "1/2 shift key", &shiftKey);
barray[4] = convertIPAC(shiftKey);
Expand Down

0 comments on commit c46e831

Please sign in to comment.