Changed sprintf from %u or %d to %lu to fix problem in PIC ports.
This commit is contained in:
@@ -132,7 +132,7 @@ char *Binary_Value_Name(uint32_t object_instance)
|
||||
static char text_string[32] = ""; /* okay for single thread */
|
||||
|
||||
if (object_instance < MAX_BINARY_VALUES) {
|
||||
sprintf(text_string, "BINARY VALUE %u", object_instance);
|
||||
sprintf(text_string, "BINARY VALUE %lu", object_instance);
|
||||
return text_string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user