fix params typo in device api
Merge pull request #20 from michaelfung/master

fix params typo in device api