projects
/
gps-watch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d88ea2
)
application: Fix indentation broken by previous changeset.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 22 Mar 2020 14:43:08 +0000
(15:43 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 22 Mar 2020 16:35:57 +0000
(17:35 +0100)
src/application/main.rs
patch
|
blob
|
history
diff --git
a/src/application/main.rs
b/src/application/main.rs
index 5ec2f96b7c98dc7d87d9f5d01adfee0b8b91e247..4fa0c96513e974bab1d0f31e29b414dd524213cd 100644
(file)
--- a/
src/application/main.rs
+++ b/
src/application/main.rs
@@
-313,15
+313,15
@@
pub unsafe extern "C" fn _start() -> ! {
shell.update(&mut logger);
if pta12.has_been_held_for_ms(1500) {
-
is_recording = !is_recording;
+ is_recording = !is_recording;
-
if is_recording {
-
logger.start_recording(&prev_tap);
-
} else {
-
logger.stop_recording(&prev_tap);
-
}
+ if is_recording {
+ logger.start_recording(&prev_tap);
+ } else {
+ logger.stop_recording(&prev_tap);
+ }
-
total_distance_cm = 0;
+ total_distance_cm = 0;
}
if reset_requested() {