From 95595664c38e0e461edb129287440b125318232b Mon Sep 17 00:00:00 2001 From: stac Date: Sun, 5 Sep 2010 23:10:34 +0000 Subject: [PATCH] telemetry: fix comments around #ifdef No functional changes. The closing comment on some of the USB_HID related ifdefs was outdated. Fixed. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1541 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/OpenPilot/Modules/Telemetry/telemetry.c | 4 ++-- flight/OpenPilot/System/pios_board.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flight/OpenPilot/Modules/Telemetry/telemetry.c b/flight/OpenPilot/Modules/Telemetry/telemetry.c index 589fa6bc0..d5ae7764c 100644 --- a/flight/OpenPilot/Modules/Telemetry/telemetry.c +++ b/flight/OpenPilot/Modules/Telemetry/telemetry.c @@ -317,7 +317,7 @@ static void telemetryRxTask(void* parameters) inputPort = PIOS_COM_TELEM_USB; } else -#endif /* ALLOW_HID_TELEMETRY */ +#endif /* PIOS_INCLUDE_USB_HID */ { inputPort = telemetryPort; } @@ -351,7 +351,7 @@ static int32_t transmitData(uint8_t* data, int32_t length) outputPort = PIOS_COM_TELEM_USB; } else -#endif /* ALLOW_HID_TELEMETRY */ +#endif /* PIOS_INCLUDE_USB_HID */ { outputPort = telemetryPort; } diff --git a/flight/OpenPilot/System/pios_board.c b/flight/OpenPilot/System/pios_board.c index 83f107d63..17dda5dac 100644 --- a/flight/OpenPilot/System/pios_board.c +++ b/flight/OpenPilot/System/pios_board.c @@ -550,7 +550,7 @@ struct pios_com_dev pios_com_devs[] = { .id = PIOS_USART_GPS, .driver = &pios_usart_com_driver, }, -#ifdef PIOS_INCLUDE_USB_HID +#if defined(PIOS_INCLUDE_USB_HID) { .id = 0, .driver = &pios_usb_com_driver,