rc-switch icon indicating copy to clipboard operation
rc-switch copied to clipboard

Use IRAM_ATTR in place of ICACHE_RAM_ATTR

Open MHz000 opened this issue 2 years ago • 1 comments

Hallo Suat, ich bin nicht so vertraut mit Git und pull request, daher hier mein Vorschlag in der rc-switch library in Zeile #48 ICACHE_RAM_ATTR durch IRAM_ATTR zu ersetzen. Wieso? Ich bekomme beim flaschen eines ESP8266 nach erfolgreicher Compilation mit VS code folgende Fehlermeldung: [{ "resource": "/c:/Dropbox/VScode/433MHz_sniffer-pull-req/.pio/libdeps/d1/rc-switch/RCSwitch.cpp", "owner": "cpp", "severity": 4, "message": "'static bool RCSwitch::receiveProtocol(int, unsigned int)' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations]", "startLineNumber": 692, "startColumn": 45, "endLineNumber": 692, "endColumn": 45 }]

'static bool RCSwitch::receiveProtocol(int, unsigned int)' is deprecated: Use IRAM_ATTR in place of ICACHE_RAM_ATTR to move functions into IRAM [-Wdeprecated-declarations] Jochen

MHz000 avatar Mar 15 '22 14:03 MHz000