mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 06:15:16 +03:00
Per mikeller's comment.
This commit is contained in:
parent
4adc5e0ed2
commit
0ae84bebb4
3 changed files with 5 additions and 8 deletions
|
@ -59,7 +59,9 @@ bool usbCableIsInserted(void)
|
|||
bool result = false;
|
||||
|
||||
#ifdef USE_USB_DETECT
|
||||
result = IORead(usbDetectPin) != 0;
|
||||
if (usbDetectPin) {
|
||||
result = IORead(usbDetectPin) != 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
return result;
|
||||
|
|
|
@ -95,8 +95,6 @@
|
|||
#define CURRENT_METER_OFFSET_DEFAULT 0
|
||||
|
||||
#define USE_VCP
|
||||
#define USE_USB_DETECT
|
||||
//#define USB_DETECT_PIN PA9
|
||||
|
||||
#define USE_UART1
|
||||
#define UART1_RX_PIN PA10
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue