Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
can_start bugfix by DanRoad
- Loading branch information
Showing
with
1 addition
and
2 deletions.
-
+1
−2
strategies/ThroughHardwareSerial/ThroughHardwareSerial.h
|
@@ -43,14 +43,13 @@ 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; |
|
|
}; |
|
|
|
|
|
|
|
|
/* Send a byte and wait for its transmission end */ |
|
|
|
|
|
void send_byte(uint8_t b, uint8_t input_pin, uint8_t output_pin) { |
|
|
uint32_t time = micros(); |
|
|
serial->write(b); |
|
|
serial->flush(); |
|
|
|
|
|