Skip to content

CO_app_STM32.c issue #92

@TheCitrusMan

Description

@TheCitrusMan

In the file CO_app_STM32.c I have an issue when enabling storage.

The function int canopen_app_resetCommunication() references to variable storageInitError, but this variable is not known in this context. Normally this does not cause any error during compilation because storage is disabled by default, but it does when #if (CO_CONFIG_STORAGE) & CO_CONFIG_STORAGE_ENABLE is true.

storageInitError is declared inside function int canopen_app_init(CANopenNodeSTM32 *_canopenNodeSTM32). This function calls canopen_app_resetCommunication() at the end, and that is the only location where this function is called. One way to fix this might be to merge functions canopen_app_init and canopen_app_resetCommunication. Another way could be to make variable storageInitError global within CO_app_STM32.c. Both have the same result but I cannot say if this is a proper fix.

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions