mirror of
https://github.com/ratspeak/microReticulum
synced 2026-11-27 13:52:14 +00:00
WIP: Fixes, optimizations, and more Transport
Changed all time references to use decimal seconds to match Python reference implementation. Fixed memory issues caused by storing references to objects instead of copies. More implementation of Transport logic. This is the first build that fully implements end-to-end path finding and routing.
This commit is contained in:
1 parent
ea7b4603ed
commit
642486ac7e
28 files changed
+958
-261
No files matched your search
@@ -37,6 +37,9 @@ Reticulum::Reticulum() : _object(new Object()) {
|
||||
// Initialkize random number generator
|
||||
RNG.begin("Reticulum");
|
||||
|
||||
// CBA TEST Transport
|
||||
__transport_enabled = true;
|
||||
|
||||
#ifdef ARDUINO
|
||||
// Stir in the Ethernet MAC address.
|
||||
//byte mac[6];
|
||||
@@ -154,6 +157,10 @@ Reticulum::Reticulum() : _object(new Object()) {
|
||||
|
||||
|
||||
void Reticulum::loop() {
|
||||
assert(_object);
|
||||
if (!_object->_is_connected_to_shared_instance) {
|
||||
RNS::Transport::loop();
|
||||
}
|
||||
// Perform random number gnerator housekeeping
|
||||
RNG.loop();
|
||||
}
|
||||
Reference in new issue
Block a user