Permalink
Browse files

Updated for ELC

  • Loading branch information...
1 parent 652958c commit d9a75b25f538aab5bceeb8e5e5a6d5dd292fa9d8 @jadonk committed Jan 10, 2013
Showing with 4 additions and 6 deletions.
  1. +4 −6 tweetstache.js
View
@@ -134,12 +134,10 @@ function sendTweet(tweet, photoName) {
if(response.statusCode == 200) led.off();
else {
led.blink();
- if(response.statusCode == 401) {
- var resendTweet = function() {
- sendTweet(tweet, photoName);
- }
- setTimeout(resendTweet, 60000);
+ var resendTweet = function() {
+ sendTweet(tweet, photoName);
}
+ setTimeout(resendTweet, 60000);
}
};
response.setEncoding('utf8');
@@ -160,7 +158,7 @@ function stacheMessage(data) {
if(data.tweet && data.filename) {
winston.info('stacheMessage = ' + JSON.stringify(data));
led.on();
- sendTweet("New #BeagleBone BeagleStache image captured at #2013CES #CESInnovate @BeagleBoardOrg", data.filename);
+ sendTweet("New #BeagleBone BeagleStache image captured at Embedded Linux Conference 2013 #lfelc! @BeagleBoardOrg", data.filename);
}
} catch(ex) {
}

0 comments on commit d9a75b2

Please sign in to comment.