Skip to content

Commit

Permalink
Merge pull request #2367 from skidau/GCPad-Recalibrate-forced
Browse files Browse the repository at this point in the history
Skipped the calibration of the GC controller if it has already been calibrated.
  • Loading branch information
skidau committed May 6, 2015
2 parents 41f1683 + 06bca52 commit a7e2425
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/Core/HW/SI_DeviceGCController.cpp
Expand Up @@ -78,7 +78,8 @@ int CSIDevice_GCController::RunBuffer(u8* _pBuffer, int _iLength)
{
INFO_LOG(SERIALINTERFACE, "PAD - Get Origin");

Calibrate();
if (!m_Calibrated)
Calibrate();

u8* pCalibration = reinterpret_cast<u8*>(&m_Origin);
for (int i = 0; i < (int)sizeof(SOrigin); i++)
Expand Down

0 comments on commit a7e2425

Please sign in to comment.