File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ bool Adafruit_USBH_MSC_BlockDevice::setActiveLUN(uint8_t lun) {
4646 _lun = lun;
4747 return true ;
4848}
49- void Adafruit_USBH_MSC_BlockDevice::setWriteCompleteCallback (tuh_msc_complete_cb_t cb) {
49+ void Adafruit_USBH_MSC_BlockDevice::setWriteCompleteCallback (
50+ tuh_msc_complete_cb_t cb) {
5051 _wr_cb = cb;
5152}
5253
@@ -75,11 +76,11 @@ bool Adafruit_USBH_MSC_BlockDevice::_io_complete_cb(
7576 // TODO skip csw status: assuming io is successful
7677 _busy = false ;
7778
78- switch (cb_data->cbw ->command [0 ]) {
79- case SCSI_CMD_WRITE_10:
80- if (_wr_cb) {
81- _wr_cb (dev_addr, cb_data);
82- }
79+ switch (cb_data->cbw ->command [0 ]) {
80+ case SCSI_CMD_WRITE_10:
81+ if (_wr_cb) {
82+ _wr_cb (dev_addr, cb_data);
83+ }
8384 break ;
8485 }
8586
You can’t perform that action at this time.
0 commit comments