Permalink
Browse files

ensure its pointer fix

  • Loading branch information...
gioblu committed Aug 7, 2016
1 parent 3266cf3 commit 2c7630a7b0901fa9e30c4d5241cbed0e14a36139
Showing with 1 addition and 1 deletion.
  1. +1 −1 strategies/ThroughHardwareSerial/ThroughHardwareSerial.h
@@ -43,7 +43,7 @@ class ThroughHardwareSerial {
/* Returns the Serial object value i.e. if(Serial) */
boolean can_start(uint8_t input_pin, uint8_t output_pin) {
return *serial;
return (serial != NULL) && *serial; // Check if pointer
};

0 comments on commit 2c7630a

Please sign in to comment.