mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32:15 +02:00
fan: use I2cDevice on versions prior to 7.0.0
This commit is contained in:
parent
d1c9e94e23
commit
5651e79548
@ -23,7 +23,7 @@ void _fanCleanup(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result _fanOpenController(void) {
|
Result _fanOpenController(void) {
|
||||||
u32 in = 0x3d000001;
|
u32 in = hosversionBefore(7,0,0) ? 1 : 0x3d000001;
|
||||||
return serviceDispatchIn(&g_fanSrv, 0, in,
|
return serviceDispatchIn(&g_fanSrv, 0, in,
|
||||||
.out_num_objects = 1,
|
.out_num_objects = 1,
|
||||||
.out_objects = &g_fanCtl
|
.out_objects = &g_fanCtl
|
||||||
|
Loading…
Reference in New Issue
Block a user