fix iphi bug and change Exy definitions to match firmware