change of struct
struct no longer contains allocated arrays problem with the reply string
This commit is contained in:
@@ -111,12 +111,16 @@ int main(void)
|
||||
MX_QUADSPI_Init();
|
||||
/* USER CODE BEGIN 2 */
|
||||
owner_details_t owner;
|
||||
LOG_DEBUG("main1","helloworld");
|
||||
LOG_DEBUG("main2","%s",get_owner_details_reply(owner));
|
||||
set_owner_details(&owner, "joran", "vn");
|
||||
LOG_DEBUG("main3","%s",get_owner_details_reply(owner));
|
||||
set_owner_details(&owner, "joran", "Van Nieuwenhoven");
|
||||
LOG_DEBUG("main4","%s",get_owner_details_reply(owner));
|
||||
LOG_DEBUG("main1","\nhelloworld");
|
||||
LOG_DEBUG("main2","%s",get_owner_details_reply(&owner));
|
||||
if(!set_owner_details(&owner, "joran", "vn")){
|
||||
LOG_DEBUG("main3","error");;
|
||||
}
|
||||
LOG_DEBUG("main4","%s",get_owner_details_reply(&owner));
|
||||
if(!set_owner_details(&owner, "joran", "Van Nieuwenhoven")){
|
||||
LOG_DEBUG("main5","error");
|
||||
}
|
||||
LOG_DEBUG("main6","%s",get_owner_details_reply(&owner));
|
||||
/* USER CODE END 2 */
|
||||
|
||||
/* Infinite loop */
|
||||
|
||||
Reference in New Issue
Block a user