Skip to content

Commit

Permalink
Fix cadence color (high memory devices only)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcormier9 committed Jun 22, 2021
1 parent 6cc3e49 commit f8181de
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,26 @@ Calculate the vertical speed in meter/min or feet/min depending on the watch set
## Release Notes
### Version 1.29
- Fix missing options (Required Pace 50K/100K) for high-memory devices with no support for "Power" options
- Fix cadence color (high memory devices only): Blue if too fast, Green if within Target Cadence Range, Red if too slow

| Memory Usage on va3 (28.6 KB) | Current | Peak |
| --------------------------------- |:-------:|:-------:|
| At startup | 25.5 kB | 27.1 kB |
| 10 sec running | 25.5 kB | 27.5 kB |
| After setting change | 25.5 kB | 28.4 kB |

| Memory Usage on fenix5 (28.6 KB) | Current | Peak |
| --------------------------------- |:-------:|:-------:|
| At startup | 25.5 kB | 27.4 kB |
| 10 sec running | 25.5 kB | 27.8 kB |
| After setting change | 25.5 kB | 28.4 kB |


| Memory Usage on fr945 (124.6 KB) | Current | Peak |
| --------------------------------- |:-------:|:-------:|
| At startup | 30.0 kB | 32.1 kB |
| 10 sec running | 30.0 kB | 32.5 kB |
| After setting change | 30.0 kB | 33.2 kB |

### Version 1.28
- Code improvement to optimize memory utilization
Expand Down
4 changes: 2 additions & 2 deletions source-highmem/GRunViewHighMem.mc
Original file line number Diff line number Diff line change
Expand Up @@ -725,8 +725,8 @@ class GRunViewHighMem extends GRunView
type == 33 /* OPTION_AVERAGE_CADENCE */)
{
if (value <= 0) { return null; }
if (value < (targetCadence - cadenceRange)) { return Graphics.COLOR_BLUE; } // 0x00AAFF
if (value > (targetCadence + cadenceRange)) { return Graphics.COLOR_RED; } // 0xFF0000
if (value < (targetCadence - cadenceRange)) { return Graphics.COLOR_RED; } // 0x00AAFF
if (value > (targetCadence + cadenceRange)) { return Graphics.COLOR_BLUE; } // 0xFF0000
return Graphics.COLOR_DK_GREEN; // 0x00AA00
}

Expand Down

0 comments on commit f8181de

Please sign in to comment.