Skip to content

Commit

Permalink
fix confix issue
Browse files Browse the repository at this point in the history
  • Loading branch information
leduynhat committed Jun 3, 2021
1 parent 46c08c0 commit f7a444d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@
*/
#define RESET_PERIOD (2592000000) //30 days
#define SAMPLING_TIME (10000) // 10 seconds
#define DEVICE_NAME "AVA sensor V1"
#define FIRMWARE_VERSION "1.3.3"
#define DEVICE_NAME "AVA sensor V2"
#define FIRMWARE_VERSION "2.0.1"

/**
* @brief Serial debug enable
Expand Down
5 changes: 3 additions & 2 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void DeviceUpdateDataCore()
device_manager->updateDataCore();
device_manager->printData();
//switch state
if(device_manager->getState().entry == 1)
if(device_manager->getState().entry == 2)
{
device_manager->switchState(DEVICE_STATE_LOG_DATA); //log data to SD card
}
Expand Down Expand Up @@ -318,7 +318,8 @@ void setup() {
device_manager->getConnectionStatus().sht85,
device_manager->getConnectionStatus().als_toxic_no2_o3,
device_manager->getConnectionStatus().als_toxic_co_so2,
device_manager->getConnectionStatus().ds3231);
device_manager->getConnectionStatus().ds3231,
device_manager->getConnectionStatus().gps);
// delay(3000);
// initialize connected devices
device_manager->initConnectedDevices();
Expand Down

0 comments on commit f7a444d

Please sign in to comment.