nicer fatal message if that ever happens
This commit is contained in:
parent
e3758dc7ce
commit
36113d6f66
|
@ -33,7 +33,7 @@
|
|||
#define wrapAngle2(angle, msg, code, engineCycle) \
|
||||
{ \
|
||||
if (cisnan(angle)) { \
|
||||
firmwareError(CUSTOM_ERR_ANGLE, "aNaN%s", msg); \
|
||||
firmwareError(CUSTOM_ERR_ANGLE, "a NaN %s", msg); \
|
||||
angle = 0; \
|
||||
} \
|
||||
assertAngleRange(angle, msg, code); \
|
||||
|
|
Loading…
Reference in New Issue