diff --git a/gdigi.c b/gdigi.c index 939c1e1..f6ab5c4 100644 --- a/gdigi.c +++ b/gdigi.c @@ -30,28 +30,16 @@ static snd_rawmidi_t *output = NULL; static snd_rawmidi_t *input = NULL; static char *device = "hw:1,0,0"; -/* - calculate checksum - array - the command to set over usb - length - length of array - check - position of checksum byte in array -*/ -char calculate_checksum(gchar *array, int length, int check) -{ - int x; - char checksum; - - checksum = 0x07; - - for (x = 0; xstr[1], msg->len - 1)); + calculate_checksum(&msg->str[1], msg->len - 1)); send_data(msg->str, msg->len);