From 3577af85a7acfcc5c9d154aebae4483350dfccd4 Mon Sep 17 00:00:00 2001 From: MasaGratoR Date: Thu, 24 Mar 2022 22:05:59 +0100 Subject: [PATCH] ts: Update tsGetTemperatureMilliC for 14.0.0 --- nx/source/services/ts.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nx/source/services/ts.c b/nx/source/services/ts.c index 6852233b..3dfca342 100644 --- a/nx/source/services/ts.c +++ b/nx/source/services/ts.c @@ -43,6 +43,8 @@ Result tsGetTemperature(TsLocation location, s32 *temperature) { } Result tsGetTemperatureMilliC(TsLocation location, s32 *temperature) { + if (hosversionAtLeast(14,0,0)) + return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return _tsCmdInU8Out32(location, (u32*)temperature, 3); }