Fix build issues on Linux.
This commit is contained in:
parent
859b993589
commit
171596c5fe
@ -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
6
rd5r.c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user