mirror of
https://github.com/meshtastic/firmware.git
synced 2025-12-30 14:40:40 +00:00
Native: fail-safes for simulated node without config file (#3486)
* LinuxInput: only close if file descriptor is assigned * Native: set some defaults if no configuration file found
This commit is contained in:
@@ -106,6 +106,8 @@ void portduinoSetup()
|
||||
}
|
||||
} else {
|
||||
std::cout << "No 'config.yaml' found, running simulated." << std::endl;
|
||||
settingsMap[maxnodes] = 200; // Default to 200 nodes
|
||||
settingsMap[logoutputlevel] = level_debug; // Default to debug
|
||||
// Set the random seed equal to TCPPort to have a different seed per instance
|
||||
randomSeed(TCPPort);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user