[Companion] Some refactoring around the splash image handling (#4067)

This commit is contained in:
Bertrand Songis
2016-11-23 08:46:22 +01:00
committed by GitHub
parent 9983ff9851
commit 343d6daf86
9 changed files with 87 additions and 76 deletions
@@ -767,8 +767,25 @@ int OpenTxFirmware::getCapability(Capability capability)
return 18;
case HasSDLogs:
return ((IS_2560(board) || IS_ARM(board)) ? true : false);
case LCDWidth:
return (IS_TARANIS(board) ? 212 : 128) ;
case LcdWidth:
if (IS_HORUS(board))
return 480;
else if (IS_TARANIS(board))
return 212;
else
return 128;
case LcdHeight:
if (IS_HORUS(board))
return 272;
else
return 64;
case LcdDepth:
if (IS_HORUS(board))
return 16;
else if (IS_TARANIS(board))
return 4;
else
return 1;
case GetThrSwitch:
return (IS_TARANIS(board) ? SWITCH_SF1 : SWITCH_THR) ;
case HasDisplayText: