Skip to content

Commit

Permalink
Update VescUart.h
Browse files Browse the repository at this point in the history
optional parameter in the constructor to keep backwards compatibility
  • Loading branch information
BertvanRossem authored Mar 29, 2021
1 parent 2c99836 commit e49ca1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/VescUart.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,14 @@ class VescUart
bool lowerButton; // valLowerButton
};

//Timeout - specifies how long the function will wait for the vesc to respond
const uint32_t _TIMEOUT;

public:
/**
* @brief Class constructor
*/
VescUart(void);
VescUart(uint32_t timeout_ms = 100);

/** Variabel to hold measurements returned from VESC */
dataPackage data;
Expand Down

0 comments on commit e49ca1e

Please sign in to comment.