diff --git a/examples/osd/arduino-dallaseprom/project-conf.h b/examples/osd/arduino-dallaseprom/project-conf.h index e25aed53c..120293679 100644 --- a/examples/osd/arduino-dallaseprom/project-conf.h +++ b/examples/osd/arduino-dallaseprom/project-conf.h @@ -38,10 +38,7 @@ #define SICSLOWPAN_CONF_FRAG 1 -#define LOOP_INTERVAL (10 * CLOCK_SECOND) - -/* Save energy */ -//#define RDC_CONF_PT_YIELD_OFF +#define LOOP_INTERVAL (15 * CLOCK_SECOND) /* For Debug: Dont allow MCU sleeping between channel checks */ //#undef RDC_CONF_MCU_SLEEP diff --git a/examples/osd/arduino-dallaseprom/sketch.pde b/examples/osd/arduino-dallaseprom/sketch.pde index 2d9101229..3a996821b 100644 --- a/examples/osd/arduino-dallaseprom/sketch.pde +++ b/examples/osd/arduino-dallaseprom/sketch.pde @@ -54,8 +54,6 @@ void loop (void) { byte buffer[32]; // Holds one page of data int status; - - mcu_sleep_off(); // Search for the first compatible EPROM/EEPROM on the bus. // If you have multiple devices you can use de.setAddress() @@ -84,7 +82,14 @@ void loop (void) // Read the first page of memory into buffer if ((status = de.readPage(buffer, 0)) == 0) { + Serial1.println("Text:"); Serial1.println((char*)buffer); + Serial1.println("Hex:"); + for(int i = 0; i < 32; i++) { + Serial1.print(buffer[i], HEX); + Serial1.print(" "); + } + Serial1.println(""); } else { sprintf((char*)buffer, "Error reading page! Code: %d", status); Serial1.println((char*)buffer); @@ -94,6 +99,4 @@ void loop (void) } } Serial1.println(""); - - mcu_sleep_on(); }