# HG changeset patch # User kripperger@CL-SEC241-09.cedarville.edu # Date 2013-02-12 12:23:52 # Node ID 3f293b73357b265cc3042036c65aea3dc0f65a38 # Parent f12f7ddbf2320881f146928b450f9c1d3036eacd Small Changes diff --git a/slave/slave/config.h b/slave/slave/config.h --- a/slave/slave/config.h +++ b/slave/slave/config.h @@ -28,7 +28,7 @@ #define DATATYPES_CAMERA 3 //Sensors and IO -#define SENSOR_LOOP 3000 // Frequency of sensor reads (in ms) (should be 200) +#define SENSOR_LOOP 100 // Frequency of sensor reads (in ms) (should be 200) #define HEATER_THRESHOLD 40 // Temperature threshold in Fahrenheit where heater is activated //I2C Addresses diff --git a/slave/slave/slave.c b/slave/slave/slave.c --- a/slave/slave/slave.c +++ b/slave/slave/slave.c @@ -82,8 +82,8 @@ int main(void) io_regulateTemp(); // Gets board temperature and enables heater if below threshold - snprintf(buff,64,"|ModuleID: %u |BoardTemp: %i |Millis: %lu |SpiTemp: %i\r\n",io_getModuleId(),sensors_getBoardTemp(),time_millis(),sensors_getSpiTemp()); //DEBUG - serial0_sendString(buff); //DEBUG + //snprintf(buff,64,"|ModuleID: %u |BoardTemp: %i |Millis: %lu |SpiTemp: %i\r\n",io_getModuleId(),sensors_getBoardTemp(),time_millis(),sensors_getSpiTemp()); //DEBUG + //serial0_sendString(buff); //DEBUG _delay_ms(2); // Delay to prevent the sensor loop from running again before time_millis changes led_off(0);