Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: correct return type #13

Merged
merged 6 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Seeed_Arduino_SSCMA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ bool SSCMA::set_tx_buffer(uint32_t size)
return this->tx_buf != nullptr;
}

bool SSCMA::clean_actions()
int SSCMA::clean_actions()
{
char cmd[64] = {0};
snprintf(cmd, sizeof(cmd), CMD_PREFIX "%s=\"\"" CMD_SUFFIX, CMD_AT_ACTION);
Expand All @@ -855,7 +855,7 @@ bool SSCMA::clean_actions()
return CMD_ETIMEDOUT;
}

bool SSCMA::save_jpeg()
int SSCMA::save_jpeg()
{
char cmd[64] = {0};
snprintf(cmd, sizeof(cmd), CMD_PREFIX "%s=\"save_jpeg()\"" CMD_SUFFIX, CMD_AT_ACTION);
Expand Down
4 changes: 2 additions & 2 deletions src/Seeed_Arduino_SSCMA.h
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,8 @@ class SSCMA
String info(bool cache = true);

// actions
bool clean_actions();
bool save_jpeg();
int clean_actions();
int save_jpeg();

String last_image() { return _image; }

Expand Down