Skip to content

Commit

Permalink
Rename functions for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ogatatsu committed Oct 13, 2020
1 parent 1a506b5 commit 2794dfe
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion libraries/Bluefruit52Lib/src/BLEConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ uint16_t BLEConnection::getSlaveLatency(void)
return _slave_latency;
}

uint16_t BLEConnection::getConnSupervisionTimeout(void)
uint16_t BLEConnection::getSupervisionTimeout(void)
{
return _sup_timeout;
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/Bluefruit52Lib/src/BLEConnection.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class BLEConnection
uint16_t getMtu (void);
uint16_t getConnectionInterval(void);
uint16_t getSlaveLatency(void);
uint16_t getConnSupervisionTimeout(void);
uint16_t getSupervisionTimeout(void);
uint16_t getDataLength(void);
uint8_t getPHY(void);

Expand Down
3 changes: 1 addition & 2 deletions libraries/Bluefruit52Lib/src/BLEPeriph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ bool BLEPeriph::setConnIntervalMS (uint16_t min_ms, uint16_t max_ms)
return setConnInterval( MS100TO125(min_ms), MS100TO125(max_ms) );
}

bool BLEPeriph::setSlaveLatency (uint16_t latency)
bool BLEPeriph::setConnSlaveLatency(uint16_t latency)
{
_ppcp.slave_latency = latency;

Expand Down Expand Up @@ -166,4 +166,3 @@ void BLEPeriph::printInfo(void)
logger.printf("%d ms", _ppcp.conn_sup_timeout*10);
logger.println();
}

2 changes: 1 addition & 1 deletion libraries/Bluefruit52Lib/src/BLEPeriph.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class BLEPeriph

bool setConnInterval (uint16_t min, uint16_t max);
bool setConnIntervalMS (uint16_t min_ms, uint16_t max_ms);
bool setSlaveLatency (uint16_t latency);
bool setConnSlaveLatency(uint16_t latency);
bool setConnSupervisionTimeout(uint16_t timeout);
bool setConnSupervisionTimeoutMS(uint16_t timeout_ms);

Expand Down

0 comments on commit 2794dfe

Please sign in to comment.