1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-25 06:22:11 +03:00

Detect version of bridge.py running on the Yun.

This commit is contained in:
Cristian Maglie
2013-11-22 14:34:43 +01:00
parent d5c828736b
commit bc584744f6
2 changed files with 16 additions and 2 deletions

View File

@ -61,12 +61,18 @@ class BridgeClass {
return transfer(buff1, len1, buff2, len2, NULL, 0, rxbuff, rxlen);
}
uint16_t getBridgeVersion()
{
return bridgeVersion;
}
static const int TRANSFER_TIMEOUT = 0xFFFF;
private:
uint8_t index;
int timedRead(unsigned int timeout);
void dropAll();
uint16_t bridgeVersion;
private:
void crcUpdate(uint8_t c);