Fix build issues on Linux.

This commit is contained in:
Serge 2018-09-17 23:43:46 -07:00
parent 859b993589
commit 171596c5fe
2 changed files with 5 additions and 4 deletions

View File

@ -38,6 +38,9 @@ static struct libusb_transfer *transfer; // async transfer descriptor
static unsigned char receive_buf[42]; // receive buffer static unsigned char receive_buf[42]; // receive buffer
static volatile int nbytes_received = 0; // receive result 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. // Callback function for asynchronous receive.
// Needs to fill the receive_buf and set nbytes_received. // Needs to fill the receive_buf and set nbytes_received.

6
rd5r.c
View File

@ -272,19 +272,17 @@ typedef struct {
// //
// General settings. // General settings.
// TODO: verify the general settings with official CPS
// //
typedef struct { typedef struct {
// Bytes e0-e7 // Bytes e0-e7
uint8_t radio_name[8]; uint8_t radio_name[8];
// Bytes e8-eb // Bytes e8-eb
uint8_t radio_id[4]; uint8_t radio_id[4];
} general_settings_t; } general_settings_t;
// //
// General settings. // Intro messages.
// TODO: verify the general settings with official CPS
// //
typedef struct { typedef struct {
// Bytes 7540-754f // Bytes 7540-754f