mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 16:28:03 +00:00
More constructor style clean-up.
This commit is contained in:
@@ -113,8 +113,7 @@ static __attribute__((noreturn)) msg_t baseband_fn(void *arg) {
|
||||
|
||||
stats.process(buffer,
|
||||
[](const BasebandStatistics statistics) {
|
||||
BasebandStatisticsMessage message;
|
||||
message.statistics = statistics;
|
||||
const BasebandStatisticsMessage message { statistics };
|
||||
shared_memory.application_queue.push(message);
|
||||
}
|
||||
);
|
||||
@@ -138,8 +137,7 @@ static __attribute__((noreturn)) msg_t rssi_fn(void *arg) {
|
||||
stats.process(
|
||||
buffer,
|
||||
[](const RSSIStatistics statistics) {
|
||||
RSSIStatisticsMessage message;
|
||||
message.statistics = statistics;
|
||||
const RSSIStatisticsMessage message { statistics };
|
||||
shared_memory.application_queue.push(message);
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user