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) {
46
46
_lun = lun;
47
47
return true ;
48
48
}
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) {
50
51
_wr_cb = cb;
51
52
}
52
53
@@ -75,11 +76,11 @@ bool Adafruit_USBH_MSC_BlockDevice::_io_complete_cb(
75
76
// TODO skip csw status: assuming io is successful
76
77
_busy = false ;
77
78
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
+ }
83
84
break ;
84
85
}
85
86
You can’t perform that action at this time.
0 commit comments