resolving "some" errors

LOG_EDBUG and printf don't seem to do anything
This commit is contained in:
joran2738
2023-11-06 22:23:11 +01:00
parent 5dd2599747
commit 5df86b3b83
3 changed files with 36 additions and 41 deletions

View File

@@ -72,17 +72,7 @@ static void MX_QUADSPI_Init(void);
/* Private user code ---------------------------------------------------------*/
/* USER CODE BEGIN 0 */
int _write(int file, char *ptr, int len) {
for (int x = 0;x<len;x++){
if (ptr[x]=='\n'){
HAL_UART_Transmit(&huart1, (uint8_t*)"\r", 1, HAL_MAX_DELAY);
}
HAL_UART_Transmit(&huart1, (uint8_t*)&ptr[x], 1, HAL_MAX_DELAY);
}
return len;
}
/* USER CODE END 0 */
/**
@@ -93,11 +83,13 @@ int main(void)
{
/* USER CODE BEGIN 1 */
owner_details_t owner;
printf("%s",get_owner_details_reply());
set_owner_details(owner, "joran", "vn");
printf("%s",get_owner_details_reply());
set_owner_details(owner, "joran", "Van Nieuwenhoven");
printf("%s",get_owner_details_reply());
printf("hello world");
LOG_DEBUG("main","helloworld");
LOG_DEBUG("main","%s",get_owner_details_reply(owner));
set_owner_details(&owner, "joran", "vn");
LOG_DEBUG("main","%s",get_owner_details_reply(owner));
set_owner_details(&owner, "joran", "Van Nieuwenhoven");
LOG_DEBUG("main","%s",get_owner_details_reply(owner));
/* USER CODE END 1 */