Skip to content

Commit 2dcdd6f

Browse files
authored
Update MF_I2C.h
1 parent aa88e21 commit 2dcdd6f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/madflight/common/MF_I2C.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ class MF_I2CNone : public MF_I2C {
7373
public:
7474
void begin() override { }
7575
void end() override { }
76-
void setClock(uint32_t freq) override { }
77-
void beginTransmission(uint8_t address) override { }
76+
void setClock(uint32_t freq) override { (void)freq; }
77+
void beginTransmission(uint8_t address) override { (void)address; }
7878
uint8_t endTransmission(bool stopBit) override { (void)stopBit; return 0; }
7979
uint32_t requestFrom(uint8_t address, uint32_t len, bool stopBit)
8080
override { (void)address; (void)len; (void)stopBit; return 0; }
@@ -105,4 +105,4 @@ class TwoWire : public HardwareI2C
105105
class TwoWire : public WireBase
106106
https://github.com/rogerclarkmelbourne/Arduino_STM32/blob/master/STM32F1/libraries/Wire/utility/WireBase.h
107107
class WireBase { // Abstraction is awesome!
108-
*/
108+
*/

0 commit comments

Comments
 (0)