Browse Source

Moved HLW8012 interrupt wrappers to IRAM

fastled
Xose Pérez 7 years ago
parent
commit
b84c48d8f0
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      code/espurna/pow.ino
  2. +1
    -1
      code/platformio.ini

+ 2
- 2
code/espurna/pow.ino View File

@ -23,11 +23,11 @@ bool _powEnabled = false;
// When using interrupts we have to call the library entry point // When using interrupts we have to call the library entry point
// whenever an interrupt is triggered // whenever an interrupt is triggered
void hlw8012_cf1_interrupt() {
void ICACHE_RAM_ATTR hlw8012_cf1_interrupt() {
hlw8012.cf1_interrupt(); hlw8012.cf1_interrupt();
} }
void hlw8012_cf_interrupt() {
void ICACHE_RAM_ATTR hlw8012_cf_interrupt() {
hlw8012.cf_interrupt(); hlw8012.cf_interrupt();
} }


+ 1
- 1
code/platformio.ini View File

@ -21,7 +21,7 @@ lib_deps =
DallasTemperature DallasTemperature
Brzo I2C Brzo I2C
https://bitbucket.org/xoseperez/justwifi.git#1.1.3 https://bitbucket.org/xoseperez/justwifi.git#1.1.3
https://bitbucket.org/xoseperez/hlw8012.git#1.0.0
https://bitbucket.org/xoseperez/hlw8012.git#1.0.1
https://bitbucket.org/xoseperez/fauxmoesp.git#2.1.0 https://bitbucket.org/xoseperez/fauxmoesp.git#2.1.0
https://bitbucket.org/xoseperez/nofuss.git#0.2.2 https://bitbucket.org/xoseperez/nofuss.git#0.2.2
https://bitbucket.org/xoseperez/emonliteesp.git#0.1.2 https://bitbucket.org/xoseperez/emonliteesp.git#0.1.2


Loading…
Cancel
Save