diff options
-rw-r--r-- | src/mame/machine/esqpanel.cpp | 1 | ||||
-rw-r--r-- | src/mame/machine/esqpanel.h | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/mame/machine/esqpanel.cpp b/src/mame/machine/esqpanel.cpp index 8e135771dd6..9fb5b1c9d38 100644 --- a/src/mame/machine/esqpanel.cpp +++ b/src/mame/machine/esqpanel.cpp @@ -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); } diff --git a/src/mame/machine/esqpanel.h b/src/mame/machine/esqpanel.h index 41307847832..5e6580c22d5 100644 --- a/src/mame/machine/esqpanel.h +++ b/src/mame/machine/esqpanel.h @@ -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 { |