Make M155 / M156 a bit more flexible

This commit is contained in:
Scott Lahteine
2016-08-11 00:16:14 -07:00
parent e3efb04295
commit dd75fca4d9
2 changed files with 14 additions and 17 deletions

View File

@ -59,13 +59,6 @@ class TWIBus {
*/
const int timeout = 5;
/**
* @brief Target device address
* @description The target device address. Persists until changed.
*
*/
uint8_t addr = 0;
/**
* @brief Number of bytes on buffer
* @description Number of bytes in the buffer waiting to be flushed to the bus.
@ -76,10 +69,16 @@ class TWIBus {
* @brief Internal buffer
* @details A fixed buffer. TWI commands can be no longer than this.
*/
char buffer[30];
char buffer[32];
public:
/**
* @brief Target device address
* @description The target device address. Persists until changed.
*/
uint8_t addr = 0;
/**
* @brief Class constructor
* @details Initialize the TWI bus and clear the buffer