You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 23, 2023. It is now read-only.
Added configuration for motor current control as torque mode as also keeping the previous power mode. Changed Walk assist max speed to 6 km/h. Added a few configuration to clock field, like disabling or show battery SOC
Copy file name to clipboardExpand all lines: firmware/common/src/mainscreen.c
+31-9Lines changed: 31 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -1055,17 +1055,39 @@ void battery_soc(void) {
1055
1055
1056
1056
1057
1057
voidtime(void) {
1058
-
rtc_time_t*p_rtc_time=rtc_get_time();
1058
+
#ifndefSW102
1059
+
rtc_time_t*p_rtc_time=rtc_get_time();
1059
1060
1060
-
// force to be [0 - 12]
1061
-
if (ui_vars.ui8_units_type) { // FIXME, should be based on a different eeprom config value, just because someone is using mph doesn't mean they want 12 hr time
1062
-
if (p_rtc_time->ui8_hours>12) {
1063
-
p_rtc_time->ui8_hours-=12;
1064
-
}
1065
-
}
1061
+
switch (ui_vars.ui8_time_field_enable) {
1062
+
default:
1063
+
case0:
1064
+
// clear the area
1065
+
fieldPrintf(&timeField, "");
1066
+
break;
1067
+
1068
+
case1:
1069
+
// force to be [0 - 12]
1070
+
if (ui_vars.ui8_units_type) { // FIXME, should be based on a different eeprom config value, just because someone is using mph doesn't mean they want 12 hr time
0 commit comments