2017-08-29 12:34 AM
2017-08-30 08:20 AM
void myNecRepeatCallback() {
char* msg = 'Repeat!\n'; HAL_UART_Transmit_DMA(&huart1, (uint8_t*) msg, strlen(msg)); HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin); HAL_Delay(10); NEC_Read(&nec);}This callback is called from the timer ISR. I don't believe it's a good idea to transmit both from ISR and main().
JW