diff --git a/adk.cpp b/adk.cpp index f07da6ac..8bce6723 100644 --- a/adk.cpp +++ b/adk.cpp @@ -234,25 +234,25 @@ uint8_t ADK::Init(uint8_t parent, uint8_t port, bool lowspeed) { /* diagnostic messages */ FailGetDevDescr: #ifdef DEBUG_USB_HOST - NotifyFailGetDevDescr(); + NotifyFailGetDevDescr(rcode); goto Fail; #endif FailSetDevTblEntry: #ifdef DEBUG_USB_HOST - NotifyFailSetDevTblEntry(); + NotifyFailSetDevTblEntry(rcode); goto Fail; #endif FailGetConfDescr: #ifdef DEBUG_USB_HOST - NotifyFailGetConfDescr(); + NotifyFailGetConfDescr(rcode); goto Fail; #endif FailSetConfDescr: #ifdef DEBUG_USB_HOST - NotifyFailSetConfDescr(); + NotifyFailSetConfDescr(rcode); goto Fail; #endif diff --git a/message.cpp b/message.cpp index a0dd721e..6a4f021f 100644 --- a/message.cpp +++ b/message.cpp @@ -65,18 +65,18 @@ void E_Notify(double d, int lvl) { #ifdef DEBUG_USB_HOST void NotifyFailGetDevDescr(void) { - Notify(PSTR("\r\ngetDevDescr"), 0x80); + Notify(PSTR("\r\ngetDevDescr "), 0x80); } void NotifyFailSetDevTblEntry(void) { - Notify(PSTR("\r\nsetDevTblEn"), 0x80); + Notify(PSTR("\r\nsetDevTblEn "), 0x80); } void NotifyFailGetConfDescr(void) { - Notify(PSTR("\r\ngetConf"), 0x80); + Notify(PSTR("\r\ngetConf "), 0x80); } void NotifyFailSetConfDescr(void) { - Notify(PSTR("\r\nsetConf"), 0x80); + Notify(PSTR("\r\nsetConf "), 0x80); } void NotifyFailGetDevDescr(uint8_t reason) { @@ -95,12 +95,11 @@ void NotifyFailGetConfDescr(uint8_t reason) { NotifyFail(reason); } -/* Will we need this in the future? void NotifyFailSetConfDescr(uint8_t reason) { NotifyFailSetConfDescr(); NotifyFail(reason); } -*/ + void NotifyFailUnknownDevice(uint16_t VID, uint16_t PID) { Notify(PSTR("\r\nUnknown Device Connected - VID: "), 0x80); D_PrintHex (VID, 0x80); diff --git a/message.h b/message.h index 584808c3..f0725003 100644 --- a/message.h +++ b/message.h @@ -43,6 +43,7 @@ void E_Notifyc(char c, int lvl); void NotifyFailGetDevDescr(uint8_t reason); void NotifyFailSetDevTblEntry(uint8_t reason); void NotifyFailGetConfDescr(uint8_t reason); +void NotifyFailSetConfDescr(uint8_t reason); void NotifyFailGetDevDescr(void); void NotifyFailSetDevTblEntry(void); void NotifyFailGetConfDescr(void);