Skip to content

Commit

Permalink
Merge pull request #428 from dbambus/main
Browse files Browse the repository at this point in the history
Minor Fixes for Fr10x11 and Ru10x11
  • Loading branch information
dbambus authored Aug 21, 2024
2 parents 2dbc158 + f6be476 commit c03e327
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/Uhrtypes/RO10x11.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class RO10x11_t : public iUhrType {

//------------------------------------------------------------------------------

// virtual const bool hasZwanzig() override { return true; }
virtual const bool hasZwanzig() override { return true; }

//------------------------------------------------------------------------------

Expand Down
16 changes: 8 additions & 8 deletions include/clockWork.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,11 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) {
usedUhrType->show(FrontWord::nach);
break;
case 20:
if (hasTwentyAndCheckForUsage() && G.UhrtypeDef == Fr10x11) {
if (hasTwentyAndCheckForUsage()) {
usedUhrType->show(FrontWord::min_20);
} else if (hasTwentyAndCheckForUsage() && G.UhrtypeDef != Fr10x11) {
usedUhrType->show(FrontWord::min_20);
usedUhrType->show(FrontWord::nach);
if (G.UhrtypeDef != Fr10x11) {
usedUhrType->show(FrontWord::nach);
}
} else {
usedUhrType->show(FrontWord::min_10);
usedUhrType->show(FrontWord::vor);
Expand All @@ -566,11 +566,11 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) {
case 23:
case 24:
case 25:
if (usedUhrType->hasTwentyfive()&& G.UhrtypeDef == Fr10x11) {
if (usedUhrType->hasTwentyfive()) {
usedUhrType->show(FrontWord::min_25);
} else if (usedUhrType->hasTwentyfive() && G.UhrtypeDef != Fr10x11) {
usedUhrType->show(FrontWord::min_25);
usedUhrType->show(FrontWord::nach);
if (G.UhrtypeDef != Fr10x11) {
usedUhrType->show(FrontWord::nach);
}
} else {
usedUhrType->show(FrontWord::min_5);
usedUhrType->show(FrontWord::vor);
Expand Down

0 comments on commit c03e327

Please sign in to comment.