aboutsummaryrefslogtreecommitdiff
path: root/test_fw/include/veml.h
diff options
context:
space:
mode:
authorNathan Perry <np@npry.dev>2024-10-24 00:25:25 -0400
committerNathan Perry <np@npry.dev>2024-10-24 00:25:25 -0400
commit5077fec0348e717fa93bd1879548fed03fcae52e (patch)
tree2b6a93daa2ba9d52d17fa5258f705c9682e49984 /test_fw/include/veml.h
parent9c07c2b85d908f699f8ba590b1d60232157eca90 (diff)
test_fw: refactor
Diffstat (limited to 'test_fw/include/veml.h')
-rw-r--r--test_fw/include/veml.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/test_fw/include/veml.h b/test_fw/include/veml.h
index 89282c8..51345a9 100644
--- a/test_fw/include/veml.h
+++ b/test_fw/include/veml.h
@@ -50,9 +50,9 @@ namespace ocularium
AmbientLightGain gain = AmbientLightGain::Eighth;
IntegrationTime integration = IntegrationTime::Ms100;
- uint16_t to_reg() const;
+ [[nodiscard]] uint16_t to_reg() const;
- int32_t gain_factor() const
+ [[nodiscard]] int32_t gain_factor() const
{
int32_t gain = 0;
@@ -122,8 +122,8 @@ namespace ocularium
bool init(const Config& config = Config{});
- uint16_t chipid() const;
- float lux() const;
+ [[nodiscard]] uint16_t chipid() const;
+ [[nodiscard]] float lux() const;
void set_config(const Config& config);