esqpanel.cpp: initialization (nw)

This commit is contained in:
Ivan Vangelista 2019-11-27 20:49:53 +01:00
parent 0515b5fc16
commit 7dcc9a29c5
2 changed files with 7 additions and 6 deletions

View File

@ -415,6 +415,7 @@ esqpanel_device::esqpanel_device(const machine_config &mconfig, device_type type
m_write_tx(*this),
m_write_analog(*this)
{
std::fill(std::begin(m_xmitring), std::end(m_xmitring), 0);
}

View File

@ -57,23 +57,23 @@ protected:
std::vector<uint8_t> m_light_states;
bool m_eps_mode;
bool m_eps_mode = 0;
esqpanel::external_panel_server *m_external_panel_server;
private:
static const int XMIT_RING_SIZE = 16;
bool m_bCalibSecondByte;
bool m_bButtonLightSecondByte;
bool m_bCalibSecondByte = 0;
bool m_bButtonLightSecondByte = 0;
devcb_write_line m_write_tx;
devcb_write16 m_write_analog;
uint8_t m_xmitring[XMIT_RING_SIZE];
int m_xmit_read, m_xmit_write;
bool m_tx_busy;
int m_xmit_read, m_xmit_write = 0;
bool m_tx_busy = 0;
emu_timer *m_external_timer;
emu_timer *m_external_timer = nullptr;
};
class esqpanel1x22_device : public esqpanel_device {