Fix build; Fix problems with SDK fingerprint emulation code

- Fix prototypes
- Add new IDLE state
- Fix potential memory corruption bug.

Change-Id: If731c6123f3ccd4bb2055707d447a016100696a1
1 file changed