summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/sensorboard.cpp
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2020-06-09 01:11:04 +0200
committer hap <happppp@users.noreply.github.com>2020-06-09 01:11:32 +0200
commitd9ee5234f7622a49acaae68fb51ec89638f356ab (patch)
tree8f2b50fedea97508cc04866ab21d9a608e8e1579 /src/devices/machine/sensorboard.cpp
parent3f5784f3a9e9e4cf8580f15af79fc3f23a2a230c (diff)
sensorboard: only load last position when the chesscomputer expects it (nw)
Diffstat (limited to 'src/devices/machine/sensorboard.cpp')
-rw-r--r--src/devices/machine/sensorboard.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/devices/machine/sensorboard.cpp b/src/devices/machine/sensorboard.cpp
index 34f713d5c66..27c16277448 100644
--- a/src/devices/machine/sensorboard.cpp
+++ b/src/devices/machine/sensorboard.cpp
@@ -79,6 +79,7 @@ sensorboard_device::sensorboard_device(const machine_config &mconfig, const char
m_custom_spawn_cb(*this),
m_custom_output_cb(*this)
{
+ m_nvram_on = false;
m_nosensors = false;
m_magnets = false;
m_inductive = false;
@@ -202,8 +203,13 @@ void sensorboard_device::device_reset()
{
cancel_sensor();
cancel_hand();
- undo_reset();
+ if (!m_nvram_on)
+ {
+ clear_board();
+ m_custom_init_cb(0);
+ }
+ undo_reset();
refresh();
}