Reverted change of sprintf %u to %lu since gcc defines uint32_t as unsigned int rather than long unsigned int like the pic. I will just add a note to the readme or demo projects for the PIC.
This commit is contained in:
@@ -134,7 +134,7 @@ char *Life_Safety_Point_Name(uint32_t object_instance)
|
||||
static char text_string[32] = ""; /* okay for single thread */
|
||||
|
||||
if (object_instance < MAX_LIFE_SAFETY_POINTS) {
|
||||
sprintf(text_string, "LS POINT %lu", object_instance);
|
||||
sprintf(text_string, "LS POINT %u", object_instance);
|
||||
return text_string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user