ruuvi / ruuvi.firmware.c

Ruuvi Firmware version 3. Built on top of Nordic SDK 15, uses both Ruuvi and external repositories as submodules. In Beta, no breaking changes are intended but may be done if absolutely necessary
BSD 3-Clause "New" or "Revised" License
54 stars 37 forks source link

Fix compilation flags #332

Closed ojousima closed 1 year ago

DG12 commented 2 years ago

Are these correct??

1) application_config/app_config.h

define RT_FLASH_ENABLED RT_FLASH_ENABLED + (APP_GATT_ENABLED))

should it be

define RT_FLASH_ENABLED RT_FLASH_ENABLED | APP_GATT_ENABLED

+++++++++++++

2) application_mode_longlife.h:

define RT_FLASH_ENABLED (o)

notice letter o , should it be

define RT_FLASH_ENABLED false

ojousima commented 1 year ago

Are these correct??

  1. OR might be more clear on intent and would protect against accidental use of negative configuration values.

  2. Yes, fixed in 1375ee5

DG12 commented 1 year ago

While you're at it (or would you rather have me make a PullRequest after you're done?) in app_config.h, could you remove SHTC comment from nRF52 mode.

203: #ifndef APP_SENSOR_NRF52_MODE 204: # define APP_SENSOR_NRF52_MODE RD_SENSOR_CFG_CONTINUOUS //!< SHTC runs in single-shot mode internally, update data automatically on fetch. +++++++++++++++++++++++++

And add to the top and remove similar from lines 27...

/**
 * @file application_config/app_config.h
 * @author Otso Jousimaa <otso@ojousima.net>
 * @date 2020-04-16
 * @brief Master configuration base
 * @detail Variables which can be adjusted by application_mode_xxxxx.h are preceded by  #ifdef
 * 
 *  Do not make customizations here. Edit application_mode_xxxx.h
 *
 * @copyright Ruuvi Innovations Ltd, license BSD-3-Clause.
 */
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

ojousima commented 1 year ago

could you remove SHTC comment from nRF52 mode.

Done, thanks for noting it