Merge pull request #117 from hefloryd/master

Declare rxpdo, txpdo as arrays
pull/119/head
nakarlsson 2022-06-02 14:16:26 +02:00 committed by GitHub
commit 6fc395e085
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -25,13 +25,13 @@ static volatile int watchdog;
#if MAX_MAPPINGS_SM2 > 0
static uint8_t rxpdo[MAX_RXPDO_SIZE] __attribute__((aligned (8)));
#else
extern uint8_t * rxpdo;
extern uint8_t rxpdo[];
#endif
#if MAX_MAPPINGS_SM3 > 0
static uint8_t txpdo[MAX_TXPDO_SIZE] __attribute__((aligned (8)));
#else
extern uint8_t * txpdo;
extern uint8_t txpdo[];
#endif
/** Function to pre-qualify the incoming SDO download.