@@ -128,6 +128,7 @@ void sfeIoTNodeLoRaWAN::onInitStartupCommands(uint32_t delaySecs)
128
128
const char *name;
129
129
} startupCommand_t;
130
130
startupCommand_t commands[] = {{' n' , kAppOpNone , " normal-startup" },
131
+ {' v' , kAppOpStartVerboseOutput , " verbose-output-enabled" },
131
132
{' a' , kAppOpStartNoAutoload , " device-auto-load-disabled" },
132
133
{' l' , kAppOpStartListDevices , " i2c-driver-listing-enabled" },
133
134
{' s' , kAppOpStartNoSettings , " settings-restore-disabled" }};
@@ -304,15 +305,15 @@ bool sfeIoTNodeLoRaWAN::onSetup()
304
305
// was settings restore disabled by startup commands?
305
306
if (inOpMode (kAppOpStartNoSettings ))
306
307
flux.setLoadSettings (false );
307
- ;
308
308
309
- // was wifi startup disabled by startup commands?
309
+ // Verbose output
310
+ if (inOpMode (kAppOpStartVerboseOutput ))
311
+ set_verbose (true );
312
+
313
+ // was list device divers set by startup commands?
310
314
if (inOpMode (kAppOpStartListDevices ))
311
315
flux.dumpDeviceAutoLoadTable ();
312
316
313
- // Serial UX - pass to our update routine
314
- // _sysUpdate.setSerialSettings(_serialSettings);
315
-
316
317
// Button events we're listening on
317
318
_boardButton.on_momentaryPress .call (this , &sfeIoTNodeLoRaWAN::onLogEvent);
318
319
@@ -719,9 +720,11 @@ void sfeIoTNodeLoRaWAN::set_termBaudRate(uint32_t newRate)
719
720
// ---------------------------------------------------------------------------
720
721
void sfeIoTNodeLoRaWAN::set_verbose (bool enable)
721
722
{
723
+
724
+ // If disable, but we are in startup mode that enables verbose, don't set disable
722
725
if (enable)
723
726
flxSetLoggingVerbose ();
724
- else
727
+ else if (! inOpMode ( kAppOpStartVerboseOutput ))
725
728
flxSetLoggingInfo ();
726
729
}
727
730
bool sfeIoTNodeLoRaWAN::get_verbose (void )
0 commit comments