Skip to content

Commit 6b85615

Browse files
Change Wire endTransmission to have bool instead of unit8 argument - to match with the Arduino API
1 parent 2450609 commit 6b85615

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

STM32F1/libraries/Wire/WireBase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void WireBase::beginTransmission(int slave_address) {
5959
beginTransmission((uint8)slave_address);
6060
}
6161

62-
uint8 WireBase::endTransmission(uint8 stop) {
62+
uint8 WireBase::endTransmission(bool stop) {
6363
uint8 retVal;
6464
if (tx_buf_overflow) {
6565
return EDATA;

STM32F1/libraries/Wire/WireBase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class WireBase { // Abstraction is awesome!
9191
* Call the process function to process the message if the TX
9292
* buffer has not overflowed.
9393
*/
94-
uint8 endTransmission(uint8);
94+
uint8 endTransmission(bool);
9595
uint8 endTransmission(void);
9696

9797
/*

0 commit comments

Comments
 (0)