diff options
author | Nikolay Minaylov <nm29719@gmail.com> | 2022-07-22 15:46:30 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-22 15:46:30 +0300 |
commit | cc5918dc488ac3617012ce5377114e086b447324 (patch) | |
tree | 28afec6c3d8afe7b882113a67623861cc0de3317 | |
parent | d9e343661dd36cfab792b78be1dea4e5950cb4dd (diff) |
App state message (#34)0.11
-rw-r--r-- | Changelog | 4 | ||||
-rw-r--r-- | application.proto | 8 | ||||
-rw-r--r-- | flipper.proto | 1 |
3 files changed, 13 insertions, 0 deletions
@@ -1,5 +1,9 @@ # Changelog +## [0.11] +### Added +- App messages: AppStateResponse + ## [0.10] ### Added - GPIO message: SetPinMode, SetInputPull, GetPinMode, GetPinModeResponse, ReadPin, ReadPinResponse, WritePin diff --git a/application.proto b/application.proto index eda9471..85f830a 100644 --- a/application.proto +++ b/application.proto @@ -29,3 +29,11 @@ message AppButtonPressRequest { message AppButtonReleaseRequest { } +enum AppState { + APP_CLOSED = 0; + APP_STARTED = 1; +}; + +message AppStateResponse { + AppState state = 1; +} diff --git a/flipper.proto b/flipper.proto index c860bf4..ca16eb5 100644 --- a/flipper.proto +++ b/flipper.proto @@ -115,6 +115,7 @@ message Main { .PB_Gpio.ReadPin gpio_read_pin = 55; .PB_Gpio.ReadPinResponse gpio_read_pin_response = 56; .PB_Gpio.WritePin gpio_write_pin = 57; + .PB_App.AppStateResponse app_state_response = 58; } } |