mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-15 07:29:15 +01:00
Removing more debugging comments
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1168 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
3144e3157c
commit
6f63c10dca
@ -261,7 +261,6 @@ void PIOS_USB_HID_EP1_OUT_Callback(void)
|
||||
/* We now have data waiting */
|
||||
rx_buffer_new_data_ctr = rx_buffer[1];
|
||||
SetEPRxStatus(ENDP1, EP_RX_VALID);
|
||||
PIOS_LED_Toggle(LED2);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -70,7 +70,6 @@ void USB_LP_CAN1_RX0_IRQHandler(void) //USB_Istr(void)
|
||||
#if (IMR_MSK & ISTR_CTR)
|
||||
if (wIstr & ISTR_CTR & wInterrupt_Mask)
|
||||
{
|
||||
PIOS_LED_Toggle(LED2);
|
||||
/* servicing of the endpoint correct transfer interrupt */
|
||||
/* clear of the CTR flag into the sub */
|
||||
CTR_LP();
|
||||
|
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
#include "pjrc_rawhid.h"
|
||||
|
||||
#include <unistd.h>
|
||||
@ -48,7 +48,7 @@
|
||||
#define BUFFER_SIZE 64
|
||||
|
||||
#define printf qDebug
|
||||
//#define printf
|
||||
#define printf
|
||||
|
||||
typedef struct hid_struct hid_t;
|
||||
typedef struct buffer_struct buffer_t;
|
||||
@ -285,7 +285,7 @@ int pjrc_rawhid::getserial(int num, char *buf) {
|
||||
{
|
||||
/* For some reason the first 8 bytes of 'serialnum' are useless (a struct?) */
|
||||
char *strptr = (char *)serialnum;
|
||||
for(int i = 0; i < 24; i++) {
|
||||
for(int i = 8; i < 33; i++) {
|
||||
*(buf++) = strptr[i];
|
||||
}
|
||||
return 0;
|
||||
|
@ -37,6 +37,6 @@ static const int PID = 0x4117;
|
||||
static const int USAGE_PAGE = 0xFF9C;
|
||||
static const int USAGE = 0x0001;
|
||||
|
||||
static const int DEV_SERIAL_LEN = 4;
|
||||
static const int DEV_SERIAL_LEN = 24;
|
||||
|
||||
#endif // RAWHID_CONST_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user