mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-25 09:16:01 +03:00
Make the isConnected() function in the serial vtable accept a const arg
Fixes warning during build. Fixes #2786
This commit is contained in:
parent
2bcdc23752
commit
06c62fc9db
2 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ struct serialPortVTable {
|
|||
|
||||
void (*writeBuf)(serialPort_t *instance, const void *data, int count);
|
||||
|
||||
bool (*isConnected)(serialPort_t *instance);
|
||||
bool (*isConnected)(const serialPort_t *instance);
|
||||
|
||||
// Optional functions used to buffer large writes.
|
||||
void (*beginWrite)(serialPort_t *instance);
|
||||
|
|
|
@ -92,7 +92,7 @@ static uint8_t usbVcpRead(serialPort_t *instance)
|
|||
}
|
||||
}
|
||||
|
||||
static bool usbVcpIsConnected(serialPort_t *instance)
|
||||
static bool usbVcpIsConnected(const serialPort_t *instance)
|
||||
{
|
||||
(void)instance;
|
||||
return usbIsConnected() && usbIsConfigured();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue