From ce060a337e865c3a0d738e30a56f6aeaf4fd3c92 Mon Sep 17 00:00:00 2001 From: AJR Date: Sun, 1 Dec 2019 20:51:21 -0500 Subject: [PATCH] pcf8584: Very minor cleanup (nw) --- src/devices/machine/pcf8584.cpp | 3 +-- 1 file changed, 1 insertion(+), 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); - }