We assume that the sending worked out OK if usb_send_transferred is not equal 0. This is necessary, since USBD_HAL sometimes returns UINT32_MAX for unknown reasons.