mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
dfrorp: fix error in mraa_init() check
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
parent
6f2c65b0d5
commit
29b11063ee
@ -126,8 +126,6 @@ upm_result_t dfrorp_update(const dfrorp_context dev)
|
||||
dev->normalized = sample / dev->a_res;
|
||||
dev->volts = dev->normalized * dev->a_ref;
|
||||
|
||||
float volts = dev->volts + dev->orp_cal_offset;
|
||||
|
||||
// From the DFRobot site
|
||||
dev->orp = ( (DFRORP_R2 * dev->a_ref * 1000.0) -
|
||||
(DFRORP_R3 * sample * dev->a_ref * 1000.0 / dev->a_res) ) /
|
||||
|
Loading…
x
Reference in New Issue
Block a user