change of struct

struct no longer contains allocated arrays

problem with the reply string
This commit is contained in:
joran2738
2023-11-06 23:57:04 +01:00
parent fb1cc1e4bc
commit 566bdb00ed
3 changed files with 44 additions and 51 deletions

View File

@@ -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 */