Skip to content

Commit

Permalink
Make MSC device read only
Browse files Browse the repository at this point in the history
This sets tud_msc_is_writable_cb to return false to report device as
write protected to host OS.
  • Loading branch information
kwirk committed Dec 20, 2022
1 parent 4b4232c commit ddfeaf1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/msc/usb_msc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,5 +239,12 @@ TU_ATTR_WEAK void tud_msc_write10_complete_cb(uint8_t lun)
}
}

bool tud_msc_is_writable_cb (uint8_t lun)
{
(void) lun;

return false;
}

// #endif // CONFIG_TINYUSB_MSC_ENABLED
// #endif // CONFIG_TINYUSB

0 comments on commit ddfeaf1

Please sign in to comment.