Fix SetWifiEnabled

This commit is contained in:
TuxSH 2017-07-03 19:28:34 +02:00
parent 1520ab7555
commit 5d2a7315d5
2 changed files with 4 additions and 2 deletions

View File

@ -30,4 +30,4 @@
#include "kernel.h"
#include "svc.h"
void SetWifiEnabled(bool enable);
Result SetWifiEnabled(bool enable);

View File

@ -26,10 +26,12 @@
#include "svc/SetWifiEnabled.h"
void SetWifiEnabled(bool enable)
Result SetWifiEnabled(bool enable)
{
if(enable)
CFG11_WIFICNT |= 1;
else
CFG11_WIFICNT &= ~1;
return 0;
}