Skip to content

Commit 2dbc158

Browse files
authored
Merge pull request #422 from clingner/Worduhr-v3_CLi
Corrections for French and Romanian time display
2 parents a90b7b4 + c976c43 commit 2dbc158

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

include/Uhrtypes/FR10x11.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Fr10x11_t : public iUhrType {
2727

2828
//------------------------------------------------------------------------------
2929

30-
// virtual const bool hasZwanzig() override { return true; }
30+
virtual const bool hasZwanzig() override { return true; }
3131

3232
//------------------------------------------------------------------------------
3333

include/clockWork.hpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,9 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) {
549549
usedUhrType->show(FrontWord::nach);
550550
break;
551551
case 20:
552-
if (hasTwentyAndCheckForUsage()) {
552+
if (hasTwentyAndCheckForUsage() && G.UhrtypeDef == Fr10x11) {
553+
usedUhrType->show(FrontWord::min_20);
554+
} else if (hasTwentyAndCheckForUsage() && G.UhrtypeDef != Fr10x11) {
553555
usedUhrType->show(FrontWord::min_20);
554556
usedUhrType->show(FrontWord::nach);
555557
} else {
@@ -564,7 +566,9 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) {
564566
case 23:
565567
case 24:
566568
case 25:
567-
if (usedUhrType->hasTwentyfive()) {
569+
if (usedUhrType->hasTwentyfive()&& G.UhrtypeDef == Fr10x11) {
570+
usedUhrType->show(FrontWord::min_25);
571+
} else if (usedUhrType->hasTwentyfive() && G.UhrtypeDef != Fr10x11) {
568572
usedUhrType->show(FrontWord::min_25);
569573
usedUhrType->show(FrontWord::nach);
570574
} else {
@@ -620,12 +624,13 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) {
620624
} else if (usedUhrType->hasTwentyfive()) {
621625
usedUhrType->show(FrontWord::min_25);
622626
usedUhrType->show(FrontWord::vor);
627+
offsetHour = 1;
623628
} else {
624629
usedUhrType->show(FrontWord::min_5);
625630
usedUhrType->show(FrontWord::nach);
626631
usedUhrType->show(FrontWord::halb);
632+
offsetHour = 1;
627633
}
628-
offsetHour = 1;
629634
break;
630635
case 36:
631636
case 37:

0 commit comments

Comments
 (0)