summaryrefslogtreecommitdiff
path: root/src/app/i2cbench/main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/i2cbench/main.cc')
-rw-r--r--src/app/i2cbench/main.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/app/i2cbench/main.cc b/src/app/i2cbench/main.cc
index a630c6d..3237f67 100644
--- a/src/app/i2cbench/main.cc
+++ b/src/app/i2cbench/main.cc
@@ -22,12 +22,16 @@
#include "driver/mmsimple.h"
#endif
+#ifndef I2CBENCH_SETOS
+#error must define I2CBENCH_SETOS
+#endif
+
void loop(void)
{
#ifdef DRIVER_LM75
//kout.printf_float(lm75.getTemp());
//kout << endl;
- lm75.setOS(64);
+ lm75.setOS(I2CBENCH_SETOS);
#endif
#ifdef DRIVER_AM2320
am2320.read();