IDT Optical Sensors / Mbed 2 deprecated OB1203_IDT

Dependencies:   mbed OB1203_example_driver

Revision:
18:b7226b560838
Parent:
14:ae0be10b73cd
Child:
19:6e584392d4a7
--- a/main.cpp	Wed Jul 25 22:08:43 2018 +0000
+++ b/main.cpp	Mon Oct 08 21:40:53 2018 +0000
@@ -35,7 +35,7 @@
 bool printAvg = 0; //default 0 print raw data
 bool redAGC = 1;
 bool IRAGC = 1;
-bool trim_oscillator = 1;
+bool trim_oscillator = 0;
 bool printCurrent = 1;
 //****************************
 
@@ -97,7 +97,7 @@
     ob1203.ls_int_en = LS_INT_ON;
     ob1203.ppg_ps_en = PPG_PS_ON;
 
-    ob1203.ps_logic_mode = PS_INT_READ_CLEARS;
+    mode ? ob1203.ps_logic_mode = PS_INT_READ_CLEARS : ob1203.ps_logic_mode = PS_INT_LOGIC;
     ob1203.ps_int_en = PS_INT_ON;
     ob1203.ls_persist = LS_PERSIST(2);
     ob1203.ps_persist = PS_PERSIST(2);