Status macro
- Post By teo
- 9 months ago
Do you know why do I get this error at this line : #define return_status(gps_data,st) (gps_data)->status = st;return st;
Here is what the compiler says :
../Core/Src/gps_parser_lib.c:87:59: error: 'gps_data' is a pointer; did you mean to use '->'?
87 | #define return_status(gps_data,st) (gps_data)->status = st;return st;
^~