Add logic to only get the value on first read #22

Open
opened 2024-04-28 18:43:53 +00:00 by sebgab · 0 comments
Owner

uint16_t v_therm = thermistor_voltage_read();

We should consider adding logic to only do calculations on the first read.
It is a bit odd to do it on both as the data could have changed between the first and second read, it is not likely, but a better way to do it nonetheless.

https://code.e1m1.xyz/Mikrokontrollersystemer-gruppe-4/mikrokontrollersystemer-prosjekt/src/commit/4666f79dd32d4581c2da4c88b17813e7076d8418/prosjekt.X/command-handler.c#L227 We should consider adding logic to only do calculations on the first read. It is a bit odd to do it on both as the data could have changed between the first and second read, it is not likely, but a better way to do it nonetheless.
sebgab added the
enhancement
bug
labels 2024-04-28 18:43:53 +00:00
sebgab self-assigned this 2024-04-28 18:43:53 +00:00
sebgab added reference output-fan-data-over-i2c 2024-04-28 18:43:56 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Mikrokontrollersystemer-gruppe-4/mikrokontrollersystemer-prosjekt#22
No description provided.