Skip to content

Commit

Permalink
Merge pull request #36 from iwanders/remove-unnecessary-min
Browse files Browse the repository at this point in the history
Remove unnecessary and not portable min().
  • Loading branch information
iwanders authored Jul 19, 2022
2 parents f1a913b + 2941d7d commit 420cd63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OBD9141.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ uint8_t OBD9141::request(void* request, uint8_t request_len){

OBD9141println();OBD9141print("A (");OBD9141print(answer_length);OBD9141print("): ");
#ifdef OBD9141_DEBUG
for (uint8_t i=0; i < min(answer_length, OBD9141_BUFFER_SIZE); i++){
for (uint8_t i=0; i < answer_length; i++){
OBD9141print(this->buffer[i]);OBD9141print(" ");
};OBD9141println();
#endif
Expand Down

0 comments on commit 420cd63

Please sign in to comment.