diff --git a/include/Uhrtypes/FR10x11.hpp b/include/Uhrtypes/FR10x11.hpp index c94bba3..dcbeabd 100644 --- a/include/Uhrtypes/FR10x11.hpp +++ b/include/Uhrtypes/FR10x11.hpp @@ -27,7 +27,7 @@ class Fr10x11_t : public iUhrType { //------------------------------------------------------------------------------ - // virtual const bool hasZwanzig() override { return true; } + virtual const bool hasZwanzig() override { return true; } //------------------------------------------------------------------------------ diff --git a/include/clockWork.hpp b/include/clockWork.hpp index cd47785..bb2f6c4 100644 --- a/include/clockWork.hpp +++ b/include/clockWork.hpp @@ -549,7 +549,9 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) { usedUhrType->show(FrontWord::nach); break; case 20: - if (hasTwentyAndCheckForUsage()) { + if (hasTwentyAndCheckForUsage() && G.UhrtypeDef == Fr10x11) { + usedUhrType->show(FrontWord::min_20); + } else if (hasTwentyAndCheckForUsage() && G.UhrtypeDef != Fr10x11) { usedUhrType->show(FrontWord::min_20); usedUhrType->show(FrontWord::nach); } else { @@ -564,7 +566,9 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) { case 23: case 24: case 25: - if (usedUhrType->hasTwentyfive()) { + if (usedUhrType->hasTwentyfive()&& G.UhrtypeDef == Fr10x11) { + usedUhrType->show(FrontWord::min_25); + } else if (usedUhrType->hasTwentyfive() && G.UhrtypeDef != Fr10x11) { usedUhrType->show(FrontWord::min_25); usedUhrType->show(FrontWord::nach); } else { @@ -620,12 +624,13 @@ void ClockWork::setMinute(uint8_t min, uint8_t &offsetHour, bool &fullHour) { } else if (usedUhrType->hasTwentyfive()) { usedUhrType->show(FrontWord::min_25); usedUhrType->show(FrontWord::vor); + offsetHour = 1; } else { usedUhrType->show(FrontWord::min_5); usedUhrType->show(FrontWord::nach); usedUhrType->show(FrontWord::halb); + offsetHour = 1; } - offsetHour = 1; break; case 36: case 37: