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:
skarg
2007-03-27 13:44:48 +00:00
parent c861d27cad
commit befc997533
11 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ int bacfile_encode_property_apdu(uint8_t * apdu,
OBJECT_FILE, object_instance);
break;
case PROP_OBJECT_NAME:
sprintf(text_string, "FILE %lu", object_instance);
sprintf(text_string, "FILE %d", object_instance);
characterstring_init_ansi(&char_string, text_string);
apdu_len = encode_tagged_character_string(&apdu[0], &char_string);
break;