Skip to content

Commit c03e327

Browse files
authored
Merge pull request #428 from dbambus/main
Minor Fixes for Fr10x11 and Ru10x11
2 parents 2dbc158 + f6be476 commit c03e327

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

include/Uhrtypes/RO10x11.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class RO10x11_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 & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -549,11 +549,11 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) {
549549
usedUhrType->show(FrontWord::nach);
550550
break;
551551
case 20:
552-
if (hasTwentyAndCheckForUsage() && G.UhrtypeDef == Fr10x11) {
552+
if (hasTwentyAndCheckForUsage()) {
553553
usedUhrType->show(FrontWord::min_20);
554-
} else if (hasTwentyAndCheckForUsage() && G.UhrtypeDef != Fr10x11) {
555-
usedUhrType->show(FrontWord::min_20);
556-
usedUhrType->show(FrontWord::nach);
554+
if (G.UhrtypeDef != Fr10x11) {
555+
usedUhrType->show(FrontWord::nach);
556+
}
557557
} else {
558558
usedUhrType->show(FrontWord::min_10);
559559
usedUhrType->show(FrontWord::vor);
@@ -566,11 +566,11 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) {
566566
case 23:
567567
case 24:
568568
case 25:
569-
if (usedUhrType->hasTwentyfive()&& G.UhrtypeDef == Fr10x11) {
569+
if (usedUhrType->hasTwentyfive()) {
570570
usedUhrType->show(FrontWord::min_25);
571-
} else if (usedUhrType->hasTwentyfive() && G.UhrtypeDef != Fr10x11) {
572-
usedUhrType->show(FrontWord::min_25);
573-
usedUhrType->show(FrontWord::nach);
571+
if (G.UhrtypeDef != Fr10x11) {
572+
usedUhrType->show(FrontWord::nach);
573+
}
574574
} else {
575575
usedUhrType->show(FrontWord::min_5);
576576
usedUhrType->show(FrontWord::vor);

0 commit comments

Comments
 (0)