diff --git a/features/unsupported/USBDevice/USBSerial/USBSerial.h b/features/unsupported/USBDevice/USBSerial/USBSerial.h index 69ed61abf5..b2ad0d51df 100644 --- a/features/unsupported/USBDevice/USBSerial/USBSerial.h +++ b/features/unsupported/USBDevice/USBSerial/USBSerial.h @@ -126,8 +126,8 @@ public: */ template void attach(T* tptr, void (T::*mptr)(void)) { - if((mptr != NULL) && (tptr != NULL)) { - rx = Callback(mptr, tptr); + if((tptr != NULL) && (mptr != NULL)) { + rx = Callback(tptr, mptr); } }