Skip to content

Commit

Permalink
Fixed error handling function
Browse files Browse the repository at this point in the history
  • Loading branch information
WillXuCodes authored and WillXuCodes committed Sep 29, 2020
1 parent b15afaf commit 5fa435c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/devices/vdml_distance.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include "vdml/vdml.h"

#define ERROR_DISTANCE_BAD_PORT(port, err_return) \
if (vexDistanceStatusGet(port) == &0x82 || vexDistanceStatusGet(port) == &0x82) { \
if (vexDistanceStatusGet(port) == 0x82 || vexDistanceStatusGet(port) == 0x82) { \
errno = EAGAIN; \
return_port(port - 1, err_return); \
}
Expand Down

0 comments on commit 5fa435c

Please sign in to comment.