# HG changeset patch # User ethanzonca@CL-ENS241-08.cedarville.edu # Date 2013-02-26 14:36:48 # Node ID 5696a474fa0f99785fba10613d9d17bcb9de6c03 # Parent 7214de94743d4e0866aa76abec792d4d29d6a6e8 Added support for standalone master operation (no slaves) diff --git a/master/master/lib/sensordata.c b/master/master/lib/sensordata.c --- a/master/master/lib/sensordata.c +++ b/master/master/lib/sensordata.c @@ -58,6 +58,7 @@ int32_t sensordata_get(uint8_t nodeID, u } } +bool isEven = false; // Generate APRS comment // TODO: Can we move this buffer to a local scope of this function? @@ -65,59 +66,67 @@ int32_t sensordata_get(uint8_t nodeID, u char commentBuffer[COMMENTBUFFER_SIZE]; char* slavesensors_getAPRScomment() { - snprintf(commentBuffer,COMMENTBUFFER_SIZE, "t9%d s%s v%s h%s _%s |%s ", sensors_getBoardTemp(), get_sv(), get_speedKnots(), get_hdop(), get_latitudeLSBs(), get_longitudeLSBs()); + snprintf(commentBuffer,COMMENTBUFFER_SIZE, "t9%d~s%s~v%s~h%s~_%s~|%s", sensors_getBoardTemp(), get_sv(), get_speedKnots(), get_hdop(), get_latitudeLSBs(), get_longitudeLSBs()); - // Find slave sensors to include in this log - for(int i=0; i= (nodeCount-1) && currentSlaveSensor >= (numReadingsToExpect-1)) {