Update ion/src/device/shared/usb/stack/device.cpp

Co-authored-by: Yaya-Cout <67095734+Yaya-Cout@users.noreply.github.com>
This commit is contained in:
devdl11
2022-04-08 18:06:07 +02:00
committed by GitHub
parent 4a830a0f30
commit 5f50f3fc9c

View File

@@ -108,7 +108,7 @@ bool Device::processSetupInRequest(SetupPacket * request, uint8_t * transferBuff
case (int) Request::GetStatus:
return getStatus(transferBuffer, transferBufferLength, transferBufferMaxLength);
case (int) Request::SetAddress:
// Make sure the request is adress is valid.
// Make sure the request is address is valid.
assert(request->wValue() < 128);
/* According to the reference manual, the address should be set after the
* Status stage of the current transaction, but this is not true.