Skip to content

Commit 5e1564b

Browse files
committed
bugfix fusb300c multispan compile error
1 parent 96a9747 commit 5e1564b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

klib/hardware/usb_controller/fusb300c.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ namespace klib::hardware::usb_controller {
5050
*/
5151
static bool write_reg(const reg command, const std::span<const uint8_t> data) {
5252
// create a multispan to send
53-
klib::multispan<const uint8_t> buffer = {
54-
{reinterpret_cast<const uint8_t*>(&command), sizeof(command)},
53+
const auto buffer = make_span_array(
54+
std::span<const uint8_t>{reinterpret_cast<const uint8_t*>(&command), sizeof(command)},
5555
data
56-
};
56+
);
5757

5858
// write the buffer to the fusb300c
5959
return Bus::write(Address, buffer);

0 commit comments

Comments
 (0)