Fixing wrong comparison for checking device ID in CPU mode

Thanks to ravkum for pointing this out

Fixes #1