From 171596c5fed78aa338bc10785649dbd1e0ddca54 Mon Sep 17 00:00:00 2001 From: Serge Date: Mon, 17 Sep 2018 23:43:46 -0700 Subject: [PATCH] Fix build issues on Linux. --- hid-libusb.c | 3 +++ rd5r.c | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hid-libusb.c b/hid-libusb.c index 3f95335..a2c05ca 100644 --- a/hid-libusb.c +++ b/hid-libusb.c @@ -38,6 +38,9 @@ static struct libusb_transfer *transfer; // async transfer descriptor static unsigned char receive_buf[42]; // receive buffer static volatile int nbytes_received = 0; // receive result +#define HID_INTERFACE 0 // interface index +#define TIMEOUT_MSEC 500 // receive timeout + // // Callback function for asynchronous receive. // Needs to fill the receive_buf and set nbytes_received. diff --git a/rd5r.c b/rd5r.c index 53ed155..3449179 100644 --- a/rd5r.c +++ b/rd5r.c @@ -272,19 +272,17 @@ typedef struct { // // General settings. -// TODO: verify the general settings with official CPS // typedef struct { // Bytes e0-e7 uint8_t radio_name[8]; // Bytes e8-eb - uint8_t radio_id[4]; + uint8_t radio_id[4]; } general_settings_t; // -// General settings. -// TODO: verify the general settings with official CPS +// Intro messages. // typedef struct { // Bytes 7540-754f