From 5651e79548eb653501f8480dd28e808a26d08d61 Mon Sep 17 00:00:00 2001 From: HookedBehemoth Date: Mon, 24 Feb 2020 00:30:31 +0100 Subject: [PATCH] fan: use I2cDevice on versions prior to 7.0.0 --- nx/source/services/fan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/source/services/fan.c b/nx/source/services/fan.c index 6052361c..29105028 100644 --- a/nx/source/services/fan.c +++ b/nx/source/services/fan.c @@ -23,7 +23,7 @@ void _fanCleanup(void) { } Result _fanOpenController(void) { - u32 in = 0x3d000001; + u32 in = hosversionBefore(7,0,0) ? 1 : 0x3d000001; return serviceDispatchIn(&g_fanSrv, 0, in, .out_num_objects = 1, .out_objects = &g_fanCtl