-
Notifications
You must be signed in to change notification settings - Fork 38
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
tools: Migrate to Protobuf RPC sessions #104
base: main
Are you sure you want to change the base?
Conversation
fb769c4
to
a5cdd51
Compare
self.cli.consume_response()?; | ||
// /// Format external storage. | ||
// pub fn format_ext(&mut self) -> io::Result<()> { | ||
// self.cli.send_and_wait_eol("storage format /ext")?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAICT there is no RPC equivalent to storage format
.
thread::sleep(Duration::from_millis(200)); | ||
} | ||
fn wait_for_idle(session: &mut RpcSession) -> io::Result<()> { | ||
// TODO: need equivalent of "loader info" CLI command. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is probably an equivalent to this (to determine whether an app is still running), but I have not figured out what it is yet.
a5cdd51
to
b990553
Compare
|
To regenerate these: - Install `protoc` (or otherwise make it available in your `PATH`). - Check out https://github.com/flipperdevices/flipperzero-protobuf in the `tools/` directory (or make a symlink there to it).
Force-pushed to clean up the protobuf generation and move the output files into a submodule, making room for other submodules under |
To-do:
RpcSession
:Working commands:
--bin storage -- mkdir
--bin storage -- remove
--bin storage -- size
--bin storage -- receive
--bin storage -- send
--bin storage -- list
--bin storage -- md5sum
--bin run-fap
Closes #76.