summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2019-12-01 20:51:21 -0500
committer AJR <ajrhacker@users.noreply.github.com>2019-12-01 20:51:21 -0500
commitce060a337e865c3a0d738e30a56f6aeaf4fd3c92 (patch)
tree98fc380fa4fd315c323eeebe8557b69ebdff0381 /src/devices/machine
parentce372fbe93296efa19f38c2b41211c0d5ced79db (diff)
pcf8584: Very minor cleanup (nw)
Diffstat (limited to 'src/devices/machine')
-rw-r--r--src/devices/machine/pcf8584.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/devices/machine/pcf8584.cpp b/src/devices/machine/pcf8584.cpp
index ad2d54f676d..31d78e73008 100644
--- a/src/devices/machine/pcf8584.cpp
+++ b/src/devices/machine/pcf8584.cpp
@@ -179,7 +179,7 @@ void pcf8584_device::set_control(u8 data)
void pcf8584_device::set_clock_frequency(u8 data)
{
LOG("%s: SCL frequency = %.2f kHz (fCLK is nominally %s MHz)\n", machine().describe_context(),
- (clocks_to_attotime(s_divider[(data & 0x1c) >> 2] * s_prescaler[data & 0x03]) / 3).as_hz() / 1000.0,
+ (clocks_to_attotime(s_divider[(data & 0x1c) >> 2] * s_prescaler[data & 0x03]) / 3).as_khz(),
s_nominal_clock[(data & 0x1c) >> 2]);
m_s2_clock = data & 0x1f;
}
@@ -231,7 +231,6 @@ void pcf8584_device::write(offs_t offset, u8 data)
set_clock_frequency(data);
else
set_own_address(data);
-
}