Skip to content

Commit

Permalink
Reintroduce longlife and longmem modes (#321)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojousima authored Dec 20, 2021
1 parent 46c9b80 commit ee17ca4
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
5 changes: 5 additions & 0 deletions src/application_config/app_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
* @brief Configure application enabled modules and parameters.
*/
/** @}*/

#ifndef APP_FW_VERSION
#define APP_FW_VERSION "v0.0.1"
#endif

/**
* @addtogroup SDK15
*/
Expand Down
4 changes: 0 additions & 4 deletions src/application_config/application_mode_default.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
#define APP_FW_NAME "Ruuvi FW "
#endif

#ifndef APP_FW_VERSION
#define APP_FW_VERSION "v0.0.1"
#endif

#ifndef APP_FW_VARIANT
#define APP_FW_VARIANT "+default"
#endif
Expand Down
6 changes: 3 additions & 3 deletions src/application_config/application_mode_longlife.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

#define APP_FW_VARIANT "+longlife"

#define APP_BLE_INTERVAL_MS (1285U * 5)
#define APP_BLE_INTERVAL_MS (1285U * 7U) //8995 ms, longest allowed divisible by 1285

#define APP_NUM_REPEATS 5
#define APP_NUM_REPEATS 7 // ~63 s

#define APP_LOG_INTERVAL_S (15U * 60U)
#define APP_LOG_INTERVAL_S (15U * 60U) // 15 minutes

#endif
8 changes: 8 additions & 0 deletions src/application_config/application_mode_longmem.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#ifndef APPLICATION_MODE_LONGMEM_H
#define APPLICATION_MODE_LONGMEM_H

#define APP_FW_VARIANT "+longmem"

#define APP_LOG_INTERVAL_S (30U * 60U) // 30 minutes

#endif

0 comments on commit ee17ca4

Please sign in to comment.