Skip to content

Parsing nmea gps stm32f103 #2

Description

@MaxESP

Dear sir thanks a lot for this lib it's amazing but i have a bug that i don't understand where it's comming from

i have declare

`#ifdef GNUC
#define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
#else
#define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)
#endif

PUTCHAR_PROTOTYPE{
/*{
HAL_UART_Transmit(&huart1, (uint8_t )&ch, 1, HAL_MAX_DELAY); // Replace huart2 with your UART handle
return ch;
}
/
if (HAL_UART_Transmit_IT(&huart1, (uint8_t *)&ch, 1) != HAL_OK)
{
Error_Handler();
}

while (HAL_UART_GetState(&huart1) != HAL_UART_STATE_READY)
{
}

return ch;
}

while (1)
{
HAL_Delay (1000);

  //uint8_t buffers[50];
/* USER CODE END WHILE */
  printf("exp: %f\n",GPS.nmea_latitude);// response ok print 
  printf("exp: %i\n",GPS.satelites);// return print 0
/* USER CODE BEGIN 3 */

/* USER CODE END 3 */
}

`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions