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)) {