Merge pull request #2367 from skidau/GCPad-Recalibrate-forced

Skipped the calibration of the GC controller if it has already been calibrated.
This commit is contained in:
skidau 2015-05-06 12:42:29 +10:00
commit a7e2425ffb
1 changed files with 2 additions and 1 deletions

View File

@ -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++)