mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-18 18:32:13 +00:00
Un-const Message in message handler interfaces.
I want to modify in place the messages that are received. Naughty, but oh well.
This commit is contained in:
@@ -47,8 +47,8 @@ public:
|
||||
return push(&message, sizeof(message));
|
||||
}
|
||||
|
||||
const Message* pop(std::array<uint8_t, Message::MAX_SIZE>& buf) {
|
||||
const Message* const p = reinterpret_cast<Message*>(buf.data());
|
||||
Message* pop(std::array<uint8_t, Message::MAX_SIZE>& buf) {
|
||||
Message* const p = reinterpret_cast<Message*>(buf.data());
|
||||
return fifo.out_r(buf.data(), buf.size()) ? p : nullptr;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user