diff options
Diffstat (limited to 'src/Wifi.cpp')
-rw-r--r-- | src/Wifi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Wifi.cpp b/src/Wifi.cpp index 5027523..9dc696b 100644 --- a/src/Wifi.cpp +++ b/src/Wifi.cpp @@ -158,12 +158,12 @@ void Wifi::Reset() } #undef BBREG_FIXED - const Firmware* fw = NDS.SPI.GetFirmware(); + const Firmware& fw = NDS.SPI.GetFirmware(); - RFVersion = fw->GetHeader().RFChipType; + RFVersion = fw.GetHeader().RFChipType; memset(RFRegs, 0, 4*0x40); - Firmware::FirmwareConsoleType console = fw->GetHeader().ConsoleType; + Firmware::FirmwareConsoleType console = fw.GetHeader().ConsoleType; if (console == Firmware::FirmwareConsoleType::DS) IOPORT(0x000) = 0x1440; else if (console == Firmware::FirmwareConsoleType::DSLite) |