From ced062988bf0df175e54b77b658132685100b350 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Tue, 13 Oct 2015 15:13:31 +0200 Subject: [USB] use plugged modules name to create iSerial field --- cores/arduino/PluggableUSB.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cores/arduino/PluggableUSB.cpp') 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; -- cgit v1.2.3-18-g5258