You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mock_msc_scsi_str_desc_manu[0] = (USB_B_DESCRIPTOR_TYPE_STRING << 8) | (2*chr_count+2); // first byte is length (including header), second byte is string type
140
+
mock_msc_scsi_str_desc_manu[0] = (USB_B_DESCRIPTOR_TYPE_STRING << 8) | (2*chr_count+2);// first byte is length (including header), second byte is string type
141
141
for (uint8_ti=0; i<chr_count; i++) {
142
142
mock_msc_scsi_str_desc_manu[1+i] =str[i];
143
143
}
144
144
145
145
str=MOCK_MSC_SCSI_STRING_2;
146
146
chr_count=strlen(str);
147
-
mock_msc_scsi_str_desc_prod[0] = (USB_B_DESCRIPTOR_TYPE_STRING << 8) | (2*chr_count+2); // first byte is length (including header), second byte is string type
147
+
mock_msc_scsi_str_desc_prod[0] = (USB_B_DESCRIPTOR_TYPE_STRING << 8) | (2*chr_count+2);// first byte is length (including header), second byte is string type
148
148
for (uint8_ti=0; i<chr_count; i++) {
149
149
mock_msc_scsi_str_desc_prod[1+i] =str[i];
150
150
}
151
151
152
152
str=MOCK_MSC_SCSI_STRING_3;
153
153
chr_count=strlen(str);
154
-
mock_msc_scsi_str_desc_ser_num[0] = (USB_B_DESCRIPTOR_TYPE_STRING << 8) | (2*chr_count+2); // first byte is length (including header), second byte is string type
154
+
mock_msc_scsi_str_desc_ser_num[0] = (USB_B_DESCRIPTOR_TYPE_STRING << 8) | (2*chr_count+2);// first byte is length (including header), second byte is string type
TEST_ASSERT_EQUAL_MESSAGE(ESP_OK, usb_host_device_open(ctrl_obj.client_hdl, ctrl_obj.dev_addr_to_open, &ctrl_obj.dev_hdl), "Failed to open the device");
TEST_ASSERT_EQUAL_MESSAGE(ESP_OK, usb_host_device_open(ctrl_obj.client_hdl, ctrl_obj.dev_addr_to_open, &ctrl_obj.dev_hdl), "Failed to open the device");
137
+
//Target our transfers to the device
138
+
for (inti=0; i<NUM_TRANSFER_OBJ; i++) {
139
+
ctrl_xfer[i]->device_handle=ctrl_obj.dev_hdl;
164
140
}
165
-
caseTEST_STAGE_CTRL_XFER_WAIT: {
166
-
//Nothing to do but wait
167
-
break;
168
-
}
169
-
caseTEST_STAGE_DEV_CLOSE: {
170
-
ESP_LOGD(CTRL_CLIENT_TAG, "Close");
171
-
vTaskDelay(10); // Give USB Host Lib some time to process all trnsfers
0 commit comments