resolving "some" errors
LOG_EDBUG and printf don't seem to do anything
This commit is contained in:
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user