mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
gpio: loosen sysver restriction on OpenSession
This commit is contained in:
parent
0ff42ee69e
commit
6343f737b4
@ -55,10 +55,6 @@ static Result _gpioCmdInU32OutBool(Service *srv, bool *out_value, u32 inval, u32
|
|||||||
}
|
}
|
||||||
|
|
||||||
Result gpioOpenSession(GpioPadSession *out, GpioPadName name) {
|
Result gpioOpenSession(GpioPadSession *out, GpioPadName name) {
|
||||||
if (hosversionAtLeast(7,0,0)) {
|
|
||||||
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
|
|
||||||
}
|
|
||||||
|
|
||||||
_Static_assert(sizeof(name) == sizeof(u32), "GpioPadName size");
|
_Static_assert(sizeof(name) == sizeof(u32), "GpioPadName size");
|
||||||
return serviceDispatchIn(&g_gpioSrv, 1, name,
|
return serviceDispatchIn(&g_gpioSrv, 1, name,
|
||||||
.out_num_objects = 1,
|
.out_num_objects = 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user