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