Skip to content

Commit 3b808a5

Browse files
ryanvesdemcadbridge
authored andcommitted
corrected the Callback function call in attach, minor type in the USBserial library
1 parent 0eaf1c6 commit 3b808a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usb/device/USBSerial/USBSerial.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class USBSerial: public USBCDC, public mbed::Stream {
150150
USBCDC::lock();
151151

152152
if ((mptr != NULL) && (tptr != NULL)) {
153-
rx = mbed::Callback<void()>(mptr, tptr);
153+
rx = mbed::Callback<void()>(tptr, mptr);
154154
}
155155

156156
USBCDC::unlock();

0 commit comments

Comments
 (0)