Skip to content

Commit

Permalink
rename Twitter directMessage() to sendDirectMessage()
Browse files Browse the repository at this point in the history
  • Loading branch information
hathach committed Jul 9, 2016
1 parent 9107501 commit f12d305
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void setup()
Twitter.err_actions(true, true);

Serial.print("Sending Direct Messsage: " DM_MESSAGE "to \"" DM_SCREENNAME "\" ... ");
Twitter.directMessage(DM_SCREENNAME, DM_MESSAGE);
Twitter.sendDirectMessage(DM_SCREENNAME, DM_MESSAGE);
Serial.println("OK");

Twitter.stop();
Expand Down
2 changes: 1 addition & 1 deletion stm32/libraries/AdafruitTwitter/adafruit_twitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ bool AdafruitTwitter::send_request(const char* http_method, const char* json_api
}


bool AdafruitTwitter::directMessage(char const* screen_name, char const* text)
bool AdafruitTwitter::sendDirectMessage(char const* screen_name, char const* text)
{
// Data contents: ASSUME key are already in urlencoded
char const* contents_para[][2] =
Expand Down
2 changes: 1 addition & 1 deletion stm32/libraries/AdafruitTwitter/adafruit_twitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class AdafruitTwitter : public AdafruitSDEP
bool stop(void);

bool tweet(char const* status);
bool directMessage(char const* screen_name, char const* text);
bool sendDirectMessage(char const* screen_name, char const* text);

virtual void err_actions (bool print, bool halt)
{
Expand Down

0 comments on commit f12d305

Please sign in to comment.