1
0
Fork 0

Suppressed unused heapMemoryUsed warning when using CO_USE_GLOBAL (#235)

This commit is contained in:
Miles Simpson 2020-10-08 23:18:31 -07:00 committed by GitHub
parent 2d7590a407
commit 5350ecbda0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -456,6 +456,8 @@ void CO_delete(void *CANptr) {
CO_ReturnError_t CO_new(uint32_t *heapMemoryUsed) {
int16_t i;
(void)heapMemoryUsed;
/* If CANopen was initialized before, return. */
if (CO != NULL) {
return CO_ERROR_NO;