Disable reading MMU register 0x21
It has proven to be too unreliable and may confuse end users.
This commit is contained in:
parent
68b4a8a6cb
commit
3fe2f25c9f
|
|
@ -35,7 +35,6 @@ const uint8_t ProtocolLogic::regs8Addrs[ProtocolLogic::regs8Count] PROGMEM = {
|
|||
const uint8_t ProtocolLogic::regs16Addrs[ProtocolLogic::regs16Count] PROGMEM = {
|
||||
4, // MMU errors - aka statistics
|
||||
0x1a, // Pulley position [mm]
|
||||
0x21, // MCU bandgap voltage
|
||||
};
|
||||
|
||||
const uint8_t ProtocolLogic::initRegs8Addrs[ProtocolLogic::initRegs8Count] PROGMEM = {
|
||||
|
|
|
|||
|
|
@ -365,10 +365,10 @@ private:
|
|||
uint8_t regs8[regs8Count] = { 0, 0, 0 };
|
||||
|
||||
// 16bit registers
|
||||
static constexpr uint8_t regs16Count = 3;
|
||||
static constexpr uint8_t regs16Count = 2;
|
||||
static_assert(regs16Count > 0); // code is not ready for empty lists of registers
|
||||
static const uint8_t regs16Addrs[regs16Count] PROGMEM;
|
||||
uint16_t regs16[regs16Count] = { 0, 0, 0 };
|
||||
uint16_t regs16[regs16Count] = { 0, 0 };
|
||||
|
||||
// 8bit init values to be sent to the MMU after line up
|
||||
static constexpr uint8_t initRegs8Count = 2;
|
||||
|
|
|
|||
Loading…
Reference in New Issue