diff options
author | Martino Facchin <m.facchin@arduino.cc> | 2015-10-13 15:13:31 +0200 |
---|---|---|
committer | Martino Facchin <m.facchin@arduino.cc> | 2015-10-21 15:23:56 +0200 |
commit | ced062988bf0df175e54b77b658132685100b350 (patch) | |
tree | 5c95d5a374af46ed508e9b05870e6a658f38c3f4 /cores/arduino/PluggableUSB.cpp | |
parent | f42b26c257859f1b76094972727c4ebc2b412a62 (diff) |
[USB] use plugged modules name to create iSerial field
Diffstat (limited to 'cores/arduino/PluggableUSB.cpp')
-rw-r--r-- | cores/arduino/PluggableUSB.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cores/arduino/PluggableUSB.cpp b/cores/arduino/PluggableUSB.cpp index 7a6351d..c489d9f 100644 --- a/cores/arduino/PluggableUSB.cpp +++ b/cores/arduino/PluggableUSB.cpp @@ -50,6 +50,15 @@ int PluggableUSB_::getDescriptor(USBSetup& setup) return 0; } +void PluggableUSB_::getShortName(char *iSerialNum) +{ + PluggableUSBModule* node; + for (node = rootNode; node; node = node->next) { + iSerialNum += node->getShortName(iSerialNum); + } + *iSerialNum = 0; +} + bool PluggableUSB_::setup(USBSetup& setup) { PluggableUSBModule* node; |