summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/sensorboard.cpp
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2022-08-09 10:40:09 -0400
committer AJR <ajrhacker@users.noreply.github.com>2022-08-09 10:40:12 -0400
commit87b1d6675965bc802da73e1ae03561af4e1043b1 (patch)
tree3458dd7925727eaca9130b3b90923374a4b68ce1 /src/devices/machine/sensorboard.cpp
parentbdc037dd500e859291061077eec1382a675630fe (diff)
dinvram: Separate backup-enable parameter (which prevents both loading and saving) from nvram_can_save
Diffstat (limited to 'src/devices/machine/sensorboard.cpp')
-rw-r--r--src/devices/machine/sensorboard.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/sensorboard.cpp b/src/devices/machine/sensorboard.cpp
index 122504b7dc9..c7786a0c4d5 100644
--- a/src/devices/machine/sensorboard.cpp
+++ b/src/devices/machine/sensorboard.cpp
@@ -228,12 +228,12 @@ bool sensorboard_device::nvram_write(util::write_stream &file)
return !file.write(m_curstate, sizeof(m_curstate), actual) && actual == sizeof(m_curstate);
}
-bool sensorboard_device::nvram_can_write()
+bool sensorboard_device::nvram_can_write() const
{
return nvram_on();
}
-bool sensorboard_device::nvram_on()
+bool sensorboard_device::nvram_on() const
{
return (m_inp_conf->read() & 3) ? bool(m_inp_conf->read() & 2) : m_nvram_auto;
}