ts: Update tsGetTemperatureMilliC for 14.0.0

This commit is contained in:
MasaGratoR 2022-03-24 22:05:59 +01:00 committed by GitHub
parent 0a88426a6a
commit 3577af85a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,6 +43,8 @@ Result tsGetTemperature(TsLocation location, s32 *temperature) {
} }
Result tsGetTemperatureMilliC(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); return _tsCmdInU8Out32(location, (u32*)temperature, 3);
} }