PXX seems now OK on X7. More tests needed
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user