Skip to content

Commit 9d373ee

Browse files
committed
Update README.md
1 parent 80ed11a commit 9d373ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ npm install yamaha-nodejs
1010
```javascript
1111
var YamahaAPI = require("yamaha-nodejs");
1212
var yamaha = new YamahaAPI("192.168.0.100");
13-
yamaha.powerOn().done(function(){
13+
yamaha.powerOn().then(function(){
1414
console.log("powerOn");
15-
yamaha.setMainInputTo("NET RADIO").done( function(){
15+
yamaha.setMainInputTo("NET RADIO").then( function(){
1616
console.log("Switched to Net Radio");
17-
yamaha.selectWebRadioListItem(1).done(function(){
17+
yamaha.selectWebRadioListItem(1).then(function(){
1818
console.log("Selected Favorites");
19-
yamaha.selectWebRadioListItem(1).done(function(){});
19+
yamaha.selectWebRadioListItem(1).then(function(){});
2020
});
2121

2222
});

0 commit comments

Comments
 (0)