Resolved various compiler warnings
This should make Jenkins happy.
This commit is contained in:
@@ -50,7 +50,6 @@
|
||||
*/
|
||||
bool I2cMasterBase::transfer(uint8_t addrRW,
|
||||
void *buf, size_t nbytes, uint8_t option) {
|
||||
uint8_t* p = reinterpret_cast<uint8_t*>(buf);
|
||||
if (_state != STATE_REP_START) {
|
||||
start();
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ class SoftI2cMaster : public I2cMasterBase {
|
||||
//----------------------------------------------------------------------------
|
||||
void sclDelay(uint8_t n) {_delay_loop_1(n);}
|
||||
//----------------------------------------------------------------------------
|
||||
bool writeScl(bool value) {
|
||||
void writeScl(bool value) {
|
||||
uint8_t s = SREG;
|
||||
noInterrupts();
|
||||
if (value == LOW) {
|
||||
@@ -145,7 +145,7 @@ class SoftI2cMaster : public I2cMasterBase {
|
||||
SREG = s;
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
bool writeSda(bool value) {
|
||||
void writeSda(bool value) {
|
||||
uint8_t s = SREG;
|
||||
noInterrupts();
|
||||
if (value == LOW) {
|
||||
|
||||
Reference in New Issue
Block a user