Skip to content

Commit 26c9300

Browse files
author
Alexander Homeodor Golovanov
committed
setStartStopCallback clang-formatted
1 parent d701019 commit 26c9300

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/arduino/msc/Adafruit_USBD_MSC.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@ void Adafruit_USBD_MSC::setReadWriteCallback(uint8_t lun, read_callback_t rd_cb,
108108
_lun_info[lun].fl_cb = fl_cb;
109109
}
110110

111-
void Adafruit_USBD_MSC::setStartStopCallback(uint8_t lun, start_stop_callback_t cb) {
111+
void Adafruit_USBD_MSC::setStartStopCallback(uint8_t lun,
112+
start_stop_callback_t cb) {
112113
_lun_info[lun].start_stop_cb = cb;
113114
}
114115

@@ -232,13 +233,14 @@ int32_t tud_msc_scsi_cb(uint8_t lun, const uint8_t scsi_cmd[16], void *buffer,
232233
}
233234

234235
// Callback invoked on start/stop
235-
bool tud_msc_start_stop_cb(uint8_t lun, uint8_t power_condition, bool start, bool load_eject)
236-
{
236+
bool tud_msc_start_stop_cb(uint8_t lun, uint8_t power_condition, bool start,
237+
bool load_eject) {
237238
if (!(_msc_dev && _msc_dev->_lun_info[lun].start_stop_cb)) {
238239
return true;
239240
}
240241

241-
return _msc_dev->_lun_info[lun].start_stop_cb(power_condition, start, load_eject);
242+
return _msc_dev->_lun_info[lun].start_stop_cb(power_condition, start,
243+
load_eject);
242244
}
243245

244246
// Callback invoked when received READ10 command.

0 commit comments

Comments
 (0)