PXX seems now OK on X7. More tests needed

This commit is contained in:
Bertrand Songis
2018-11-03 16:28:57 +01:00
parent bbfa94151f
commit 9d93d88a66
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -140,7 +140,7 @@ class StandardPxxTransport: public BitTransport, public PxxCrcMixin {
void initFrame() void initFrame()
{ {
BitTransport::initBuffer(); BitTransport::initFrame();
ones_count = 0; ones_count = 0;
} }
@@ -176,6 +176,11 @@ class StandardPxxTransport: public BitTransport, public PxxCrcMixin {
class UartPxxTransport: public DataBuffer<uint8_t, 64>, public PxxCrcMixin { class UartPxxTransport: public DataBuffer<uint8_t, 64>, public PxxCrcMixin {
protected: protected:
void initFrame()
{
initBuffer();
}
void addByte(uint8_t byte) void addByte(uint8_t byte)
{ {
PxxCrcMixin::addToCrc(byte); PxxCrcMixin::addToCrc(byte);
+1 -1
View File
@@ -57,7 +57,7 @@ void Pxx1Pulses<PxxTransport>::add8ChannelsFrame(uint8_t port, uint8_t sendUpper
template <class PxxTransport> template <class PxxTransport>
void Pxx1Pulses<PxxTransport>::setupFrame(uint8_t port) void Pxx1Pulses<PxxTransport>::setupFrame(uint8_t port)
{ {
PxxTransport::initBuffer(); PxxTransport::initFrame();
#if defined(PXX_FREQUENCY_HIGH) #if defined(PXX_FREQUENCY_HIGH)
add8ChannelsFrame(port, 0); add8ChannelsFrame(port, 0);