From 08156f763fee4a2f569900005253cd993eb4a86e Mon Sep 17 00:00:00 2001 From: Uwe Seimet <48174652+uweseimet@users.noreply.github.com> Date: Mon, 14 Mar 2022 01:45:52 +0100 Subject: [PATCH] Only return RTC page if not changeable pages are requested (#731) --- src/raspberrypi/devices/host_services.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/raspberrypi/devices/host_services.cpp b/src/raspberrypi/devices/host_services.cpp index 18368ae5..fde70440 100644 --- a/src/raspberrypi/devices/host_services.cpp +++ b/src/raspberrypi/devices/host_services.cpp @@ -169,9 +169,9 @@ void HostServices::AddModePages(map>& pages, int page, bool ch void HostServices::AddRealtimeClockPage(map>& pages, bool changeable) const { - vector buf(10); - if (!changeable) { + vector buf(10); + // Data structure version 1.0 buf[2] = 0x01; buf[3] = 0x00; @@ -185,7 +185,7 @@ void HostServices::AddRealtimeClockPage(map>& pages, bool chan buf[8] = tm.tm_min; // Ignore leap second for simplicity buf[9] = tm.tm_sec < 60 ? tm.tm_sec : 59; - } - pages[32] = buf; + pages[32] = buf; + } }