mirror of
https://github.com/arendst/Tasmota.git
synced 2026-10-26 22:11:22 +00:00
Fix compile warnings
This commit is contained in:
1 parent
ab38e799a0
commit
d4cef1cdc6
2 files changed
+4
-2
No files matched your search
@@ -112,7 +112,7 @@ void Twi::init(unsigned char sda, unsigned char scl) {
|
||||
twi_setClockStretchLimit(150000L); // default value is 150 mS
|
||||
}
|
||||
|
||||
void ICACHE_RAM_ATTR Twi::busywait(unsigned int v) {
|
||||
void Twi::busywait(unsigned int v) {
|
||||
unsigned int i;
|
||||
for (i = 0; i < v; i++) { // loop time is 5 machine cycles: 31.25ns @ 160MHz, 62.5ns @ 80MHz
|
||||
asm("nop"); // minimum element to keep GCC from optimizing this function out.
|
||||
|
||||
@@ -379,10 +379,12 @@ bool IRac::isProtocolSupported(const decode_type_t protocol) {
|
||||
#if SEND_WHIRLPOOL_AC
|
||||
case decode_type_t::WHIRLPOOL_AC:
|
||||
#endif
|
||||
return true;
|
||||
// return true;
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
#if SEND_AIRTON
|
||||
|
||||
Reference in new issue
Block a user