Skip to content

Commit

Permalink
[FL-3917] Add AppButtonPressRelease request (#52)
Browse files Browse the repository at this point in the history
* Add AppButtonPressRelease request

* Update flipper.proto

* Update Changelog

* Add @gsurkov to CODEOWNERS

---------

Co-authored-by: Georgii Surkov <[email protected]>
  • Loading branch information
Astrrra and gsurkov authored Dec 17, 2024
1 parent 6c7c0d5 commit 1c84fa4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Who owns all the code by default

* @DrZlo13 @skotopes @gornekich @nminaylov @hedger
* @DrZlo13 @skotopes @gornekich @nminaylov @hedger @gsurkov
4 changes: 4 additions & 0 deletions Changelog
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## [0.25]
### Added
- App: New AppButtonPressReleaseRequest, presses and releases a button in one request

## [0.24]
### Added
- Gpio: 5V control messages: GetOtgMode, GetOtgModeResponse, SetOtgMode
Expand Down
1 change: 1 addition & 0 deletions application.options
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ PB_App.StartRequest.name type:FT_POINTER
PB_App.StartRequest.name max_length:512
PB_App.AppLoadFileRequest.path max_length:512
PB_App.AppButtonPressRequest.args max_length:512
PB_App.AppButtonPressReleaseRequest.args max_length:512
PB_App.GetErrorResponse.text type:FT_POINTER
PB_App.DataExchangeRequest.data type:FT_POINTER
5 changes: 5 additions & 0 deletions application.proto
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ message AppButtonPressRequest {
message AppButtonReleaseRequest {
}

message AppButtonPressReleaseRequest {
string args = 1;
int32 index = 2;
}

enum AppState {
APP_CLOSED = 0;
APP_STARTED = 1;
Expand Down
1 change: 1 addition & 0 deletions flipper.proto
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ message Main {
.PB_App.AppLoadFileRequest app_load_file_request = 48;
.PB_App.AppButtonPressRequest app_button_press_request = 49;
.PB_App.AppButtonReleaseRequest app_button_release_request = 50;
.PB_App.AppButtonPressReleaseRequest app_button_press_release_request = 75;
.PB_App.GetErrorRequest app_get_error_request = 63;
.PB_App.GetErrorResponse app_get_error_response = 64;
.PB_App.DataExchangeRequest app_data_exchange_request = 65;
Expand Down

0 comments on commit 1c84fa4

Please sign in to comment.