Do not mask interrupts during transmission
Somehow this breaks the board. So far no problems detected without masking interrupts.
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
#include <SPI.h>
|
|
||||||
#include "esphome.h"
|
#include "esphome.h"
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@@ -105,8 +104,6 @@ class SomfyRTS : public Component, public Cover {
|
|||||||
frame[i] ^= frame[i-1];
|
frame[i] ^= frame[i-1];
|
||||||
}
|
}
|
||||||
|
|
||||||
noInterrupts();
|
|
||||||
|
|
||||||
// Wake-up pulse & silence.
|
// Wake-up pulse & silence.
|
||||||
digitalWrite(rfPin, HIGH);
|
digitalWrite(rfPin, HIGH);
|
||||||
delayMicroseconds(9415);
|
delayMicroseconds(9415);
|
||||||
@@ -153,8 +150,6 @@ class SomfyRTS : public Component, public Cover {
|
|||||||
delayMicroseconds(30415);
|
delayMicroseconds(30415);
|
||||||
}
|
}
|
||||||
|
|
||||||
interrupts();
|
|
||||||
|
|
||||||
// Publish the new rolling code at the end to ensure fast reaction time
|
// Publish the new rolling code at the end to ensure fast reaction time
|
||||||
// when the component is called. This method may be synchronous and
|
// when the component is called. This method may be synchronous and
|
||||||
// introduces an unpredictable delay.
|
// introduces an unpredictable delay.
|
||||||
|
|||||||
Reference in New Issue
Block a user