We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96a9747 commit 5e1564bCopy full SHA for 5e1564b
1 file changed
klib/hardware/usb_controller/fusb300c.hpp
@@ -50,10 +50,10 @@ namespace klib::hardware::usb_controller {
50
*/
51
static bool write_reg(const reg command, const std::span<const uint8_t> data) {
52
// create a multispan to send
53
- klib::multispan<const uint8_t> buffer = {
54
- {reinterpret_cast<const uint8_t*>(&command), sizeof(command)},
+ const auto buffer = make_span_array(
+ std::span<const uint8_t>{reinterpret_cast<const uint8_t*>(&command), sizeof(command)},
55
data
56
- };
+ );
57
58
// write the buffer to the fusb300c
59
return Bus::write(Address, buffer);
0 commit comments