Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
flow3r firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
flow3r
flow3r firmware
Commits
4fe6bb6c
Commit
4fe6bb6c
authored
1 year ago
by
ave
Committed by
q3k
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Switch the REPL/fatal/disk restart button to right shoulder button
parent
c3f5fdb0
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!206
Switch the REPL/fatal/disk restart button to right shoulder button
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/st3m/st3m_mode.c
+4
-4
4 additions, 4 deletions
components/st3m/st3m_mode.c
with
4 additions
and
4 deletions
components/st3m/st3m_mode.c
+
4
−
4
View file @
4fe6bb6c
...
@@ -123,7 +123,7 @@ void st3m_mode_update_display(bool *restartable) {
...
@@ -123,7 +123,7 @@ void st3m_mode_update_display(bool *restartable) {
case
st3m_mode_kind_disk_sd
:
case
st3m_mode_kind_disk_sd
:
case
st3m_mode_kind_disk_flash
:
{
case
st3m_mode_kind_disk_flash
:
{
const
char
*
lines
[]
=
{
const
char
*
lines
[]
=
{
"Press
lef
t shoulder button"
,
"Press
righ
t shoulder button"
,
"to exit."
,
"to exit."
,
NULL
,
NULL
,
};
};
...
@@ -139,7 +139,7 @@ void st3m_mode_update_display(bool *restartable) {
...
@@ -139,7 +139,7 @@ void st3m_mode_update_display(bool *restartable) {
_mode
.
shown
=
true
;
_mode
.
shown
=
true
;
const
char
*
lines
[]
=
{
const
char
*
lines
[]
=
{
"Send Ctrl-D over USB"
,
"Send Ctrl-D over USB"
,
"or press
lef
t shoulder button"
,
"or press
righ
t shoulder button"
,
"to restart."
,
"to restart."
,
NULL
,
NULL
,
};
};
...
@@ -158,7 +158,7 @@ void st3m_mode_update_display(bool *restartable) {
...
@@ -158,7 +158,7 @@ void st3m_mode_update_display(bool *restartable) {
}
}
const
char
*
lines
[]
=
{
const
char
*
lines
[]
=
{
msg
,
msg
,
"Press
lef
t shoulder button"
,
"Press
righ
t shoulder button"
,
"to restart."
,
"to restart."
,
NULL
,
NULL
,
};
};
...
@@ -186,7 +186,7 @@ static void _task(void *arg) {
...
@@ -186,7 +186,7 @@ static void _task(void *arg) {
st3m_mode_update_display
(
&
restartable
);
st3m_mode_update_display
(
&
restartable
);
if
(
restartable
)
{
if
(
restartable
)
{
st3m_tripos
tp
=
st3m_io_
lef
t_button_get
();
st3m_tripos
tp
=
st3m_io_
righ
t_button_get
();
if
(
tp
==
st3m_tripos_mid
)
{
if
(
tp
==
st3m_tripos_mid
)
{
st3m_gfx_textview_t
tv
=
{
st3m_gfx_textview_t
tv
=
{
.
title
=
"Restarting..."
,
.
title
=
"Restarting..."
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment