Skip to content

Commit 2a97742

Browse files
committed
Added use of the system object in Flux to enable restart/rest of the device/board
1 parent 2491ad0 commit 2a97742

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ flux_sdk_add_module(
2626
flux_base
2727
flux_clock
2828
flux_logging
29+
flux_system
2930
flux_prefs
3031
flux_prefs_serial
3132
flux_network

sfeIoTNodeLoRaWAN/sfeIoTNodeLoRaWAN.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,8 @@ bool sfeIoTNodeLoRaWAN::onStart()
357357
// - Add the JSON and CVS format to the logger
358358
_logger.add(_fmtJSON);
359359
_logger.add(_fmtCSV);
360-
// _fmtJSON.add(flxSerial);
361-
// _logger.add(_fmtCSV);
362-
// _fmtCSV.add(flxSerial);
360+
361+
_sysSystem.setSerialSettings(_serialSettings);
363362

364363
// check our I2C devices
365364
// Loop over the device list - note that it is iterable.

sfeIoTNodeLoRaWAN/sfeIoTNodeLoRaWAN.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#include <Flux/flxSettings.h>
2323
#include <Flux/flxSettingsSerial.h>
2424
#include <Flux/flxStorageKVPPref.h>
25-
// #include <Flux/flxSysFirmware.h>
25+
#include <Flux/flxSystem.h>
2626

2727
#include "flxLoRaWANDigi.h"
2828
#include "flxLoRaWANLogger.h"
@@ -204,8 +204,8 @@ class sfeIoTNodeLoRaWAN : public flxApplication
204204
flxStorageKVPPref _sysStorage;
205205
flxKVPStoreDeviceRP2 _sysStorageDevice;
206206

207-
// Our firmware Update/Reset system
208-
// flxSysFirmware _sysUpdate;
207+
// Our system Control
208+
flxSystem _sysSystem;
209209
// for our button events of the board
210210
// sfeDLButton _boardButton;
211211

0 commit comments

Comments
 (0)