From cd5d7387f36278fc2ef91148c1934182babf093f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mo=C5=84?= Date: Fri, 13 Mar 2009 20:33:24 +0100 Subject: [PATCH] remove obsolete function --- gdigi.c | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) 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);