Fix scope error by moving declaration

This commit is contained in:
2026-06-14 20:48:11 +02:00
parent 17febf569a
commit 19eefc288b
3 changed files with 17 additions and 13 deletions
-13
View File
@@ -27,19 +27,6 @@
/* Private typedef -----------------------------------------------------------*/
/* USER CODE BEGIN PTD */
typedef struct {
GPIO_TypeDef* port;
uint16_t pin;
} LED_Config;
typedef struct {
uint32_t id;
uint8_t payload[8];
uint8_t dlc;
uint8_t isExtended;
//uint32_t timestamp; //Enable TIM2: 42 MHz / (41+1) = 1 MHz → 1 µs tick; 32bit autoreload freerunning
// this is for getting timestamps on can messages
} CanMessage_t;
/* USER CODE END PTD */
/* Private define ------------------------------------------------------------*/