mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
WIP: Optimizations with reference return types.
This commit is contained in:
1 parent
9f1602067d
commit
d09331ec0e
23 files changed
+104
-59
No files matched your search
+4
-4
@@ -15,10 +15,10 @@ Packet::Packet(const Destination &destination, const Interface &attached_interfa
|
||||
|
||||
if (_object->_destination) {
|
||||
extreme("Creating packet with destination...");
|
||||
// CBA TODO handle NONE
|
||||
if (transport_type == -1) {
|
||||
transport_type = Type::Transport::BROADCAST;
|
||||
}
|
||||
// CBA Should never see empty transport_type
|
||||
//if (transport_type == NONE) {
|
||||
// transport_type = Type::Transport::BROADCAST;
|
||||
//}
|
||||
// following moved to object constructor to avoid extra NONE object
|
||||
//_destination = destination;
|
||||
_object->_header_type = header_type;
|
||||
|
||||
Reference in new issue
Block a user