mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Fixed use of an enum type in a parameter group.
This commit is contained in:
parent
8c2a8f717a
commit
ae4c260d74
4 changed files with 4 additions and 4 deletions
|
@ -117,7 +117,7 @@ serialPort_t *findSharedSerialPort(uint16_t functionMask, serialPortFunction_e s
|
|||
//
|
||||
typedef struct serialPortConfig_s {
|
||||
uint32_t functionMask;
|
||||
serialPortIdentifier_e identifier;
|
||||
int8_t identifier;
|
||||
uint8_t msp_baudrateIndex;
|
||||
uint8_t gps_baudrateIndex;
|
||||
uint8_t blackbox_baudrateIndex;
|
||||
|
|
|
@ -73,7 +73,7 @@ uint32_t microsISR(void)
|
|||
}
|
||||
|
||||
#define SERIAL_BUFFER_SIZE 256
|
||||
#define SERIAL_PORT_DUMMY_IDENTIFIER (serialPortIdentifier_e)0x1234
|
||||
#define SERIAL_PORT_DUMMY_IDENTIFIER (serialPortIdentifier_e)0x12
|
||||
|
||||
typedef struct serialPortStub_s {
|
||||
uint8_t buffer[SERIAL_BUFFER_SIZE];
|
||||
|
|
|
@ -75,7 +75,7 @@ uint32_t microsISR(void)
|
|||
}
|
||||
|
||||
#define SERIAL_BUFFER_SIZE 256
|
||||
#define SERIAL_PORT_DUMMY_IDENTIFIER (serialPortIdentifier_e)0x1234
|
||||
#define SERIAL_PORT_DUMMY_IDENTIFIER (serialPortIdentifier_e)0x12
|
||||
|
||||
typedef struct serialPortStub_s {
|
||||
uint8_t buffer[SERIAL_BUFFER_SIZE];
|
||||
|
|
|
@ -139,7 +139,7 @@ uint8_t getBatteryCellCount(void) {
|
|||
static serialPortStub_t serialWriteStub;
|
||||
static serialPortStub_t serialReadStub;
|
||||
|
||||
#define SERIAL_PORT_DUMMY_IDENTIFIER (serialPortIdentifier_e)0x1234
|
||||
#define SERIAL_PORT_DUMMY_IDENTIFIER (serialPortIdentifier_e)0x12
|
||||
serialPort_t serialTestInstance;
|
||||
serialPortConfig_t serialTestInstanceConfig = {
|
||||
.identifier = SERIAL_PORT_DUMMY_IDENTIFIER,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue