Skip to content

Commit 83fbb07

Browse files
committed
F1: Wire: fix compile warnings (unused parameters)
1 parent 58ca12a commit 83fbb07

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

STM32F1/libraries/Wire/SoftWire.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@ SoftWire::SoftWire(uint8 scl, uint8 sda, uint8 delay) : i2c_delay(delay) {
193193
}
194194

195195
void SoftWire::begin(uint8 self_addr) {
196+
(void)self_addr;
196197
tx_buf_idx = 0;
197198
tx_buf_overflow = false;
198199
rx_buf_idx = 0;

STM32F1/libraries/Wire/utility/WireBase.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#include "wirish.h"
4343

4444
void WireBase::begin(uint8 self_addr) {
45+
(void)self_addr;
4546
tx_buf_idx = 0;
4647
tx_buf_overflow = false;
4748
rx_buf_idx = 0;

0 commit comments

Comments
 (0)