1
0
Fork 0

Update example/main_blank.c, fix problems with LSS.

Other microcontrollers should fix this too, see https://github.com/CANopenNode/CanOpenSTM32/pull/67
This commit is contained in:
Janez 2025-07-27 01:00:04 +02:00 committed by GitHub
parent c7a4d26b38
commit c804f7de47
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,7 +146,7 @@ main(void) {
}
err = CO_CANopenInitPDO(CO, CO->em, OD, activeNodeId, &errInfo);
if (err != CO_ERROR_NO) {
if (err != CO_ERROR_NO && err != CO_ERROR_NODE_ID_UNCONFIGURED_LSS) {
if (err == CO_ERROR_OD_PARAMETERS) {
log_printf("Error: Object Dictionary entry 0x%X\n", errInfo);
} else {