Skip to content

Commit b3c8a1e

Browse files
committed
added debug info to find out why CI fails
1 parent b0f400b commit b3c8a1e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

device/esp_tinyusb/tusb_msc_storage.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ static void _write_func(void *param)
294294
{
295295
s_storage_handle->write_in_progress = true;
296296
// Process the data in storage_buffer
297+
ESP_LOGI(TAG, "called write func");
297298
esp_err_t err = _msc_storage_write_sector(
298299
s_storage_handle->storage_buffer.lba,
299300
s_storage_handle->storage_buffer.offset,
@@ -703,7 +704,7 @@ int32_t tud_msc_scsi_cb(uint8_t lun, uint8_t const scsi_cmd[16], void *buffer, u
703704
// Invoked when device is unmounted
704705
void tud_umount_cb(void)
705706
{
706-
usbd_cancel_deferred_func(_write_func, NULL);
707+
ESP_LOGI(TAG, "called write func");
707708
if (tinyusb_msc_storage_mount(s_storage_handle->base_path) != ESP_OK) {
708709
ESP_LOGW(TAG, "tud_umount_cb() mount Fails");
709710
}

0 commit comments

Comments
 (0)