# HG changeset patch # User sl # Date 1410002902 -7200 # Node ID 9f659cde9ee835a6e51aef5a98844e85f1557ae9 # Parent 96c013c6359541c7729c19ac6a1947a2a65cad70 Fixing connection to GP1212A02 not working any more except for auto-detect. GP1212A02: Fixing clock character length for PM/AM modes. diff -r 96c013c63595 -r 9f659cde9ee8 FutabaGP1212A02.cpp --- a/FutabaGP1212A02.cpp Sun Aug 31 22:57:32 2014 +0200 +++ b/FutabaGP1212A02.cpp Sat Sep 06 13:28:22 2014 +0200 @@ -701,9 +701,11 @@ switch (aFormat) { case EClockDay12: + return 13; case EClockDay24: return 10; case EClock12: + return 8; case EClock24: return 5; } diff -r 96c013c63595 -r 9f659cde9ee8 MiniDisplay.cpp --- a/MiniDisplay.cpp Sun Aug 31 22:57:32 2014 +0200 +++ b/MiniDisplay.cpp Sat Sep 06 13:28:22 2014 +0200 @@ -48,7 +48,9 @@ MiniDisplayDevice MiniDisplayOpen(TMiniDisplayType aType) { bool autoDetect=aType==EMiniDisplayAutoDetect; - return MiniDisplayOpen(EMiniDisplayFutabaGP1212A01,autoDetect); + //If we want auto detect we need to pass in our first display type + //If we don't want auto detect we just pass in the given display type. + return MiniDisplayOpen((autoDetect?EMiniDisplayFutabaGP1212A01:aType),autoDetect); }