Fixed warning and remove function prototype

This commit is contained in:
Kristian Sloth Lauszus 2016-04-19 11:20:54 +02:00
parent 5feb32601c
commit 178af85a26

View file

@ -60,8 +60,6 @@ void setup()
next_time = millis() + 10000; next_time = millis() + 10000;
} }
uint8_t getdevdescr( uint8_t addr, uint8_t &num_conf );
void PrintDescriptors(uint8_t addr) void PrintDescriptors(uint8_t addr)
{ {
uint8_t rcode = 0; uint8_t rcode = 0;
@ -238,7 +236,7 @@ uint8_t getconfdescr( uint8_t addr, uint8_t conf )
// function to get all string descriptors // function to get all string descriptors
uint8_t getallstrdescr(uint8_t addr) uint8_t getallstrdescr(uint8_t addr)
{ {
uint8_t rcode; uint8_t rcode = 0;
Usb.Task(); Usb.Task();
if ( Usb.getUsbTaskState() >= USB_STATE_CONFIGURING ) { // state configuring or higher if ( Usb.getUsbTaskState() >= USB_STATE_CONFIGURING ) { // state configuring or higher
USB_DEVICE_DESCRIPTOR buf; USB_DEVICE_DESCRIPTOR buf;
@ -272,6 +270,7 @@ uint8_t getallstrdescr(uint8_t addr)
Serial.print("\r\n"); Serial.print("\r\n");
} }
} }
return rcode;
} }
// function to get single string description // function to get single string description