From 288a09c4ebb330c2e8598b61715d10a5101584e8 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 19 Oct 2023 13:18:19 -0700 Subject: [PATCH] uart: use hosversionBetween when possible --- nx/source/services/uart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nx/source/services/uart.c b/nx/source/services/uart.c index 33d8563c..038364e0 100644 --- a/nx/source/services/uart.c +++ b/nx/source/services/uart.c @@ -108,14 +108,14 @@ Result uartIsSupportedPortEventForDev(UartPortForDev port, UartPortEventType por } Result uartIsSupportedDeviceVariation(UartPort port, u32 device_variation, bool *out) { - if (hosversionBefore(7,0,0) || hosversionAtLeast(17,0,0)) + if (!hosversionBetween(7,17)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return _uartCmdInTwoU32sOutBool(&g_uartSrv, port, device_variation, out, 9); } Result uartIsSupportedDeviceVariationForDev(UartPortForDev port, u32 device_variation, bool *out) { - if (hosversionBefore(7,0,0) || hosversionAtLeast(17,0,0)) + if (!hosversionBetween(7,17)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return _uartCmdInTwoU32sOutBool(&g_uartSrv, port, device_variation, out, 10);