fix typo in device API
Merge pull request #30 from michaelfung/master

fix typo in device API