[all] Telemetry display bug fixes

[X9D] Some more work on screens
This commit is contained in:
bsongis
2012-11-02 16:53:44 +00:00
parent 1080514bd9
commit 55b242c96b
4 changed files with 30 additions and 5 deletions
+12
View File
@@ -158,6 +158,18 @@ char idx2char(int8_t idx)
return ' ';
}
#if defined(PCBX9D)
uint8_t zlen(const char *str, uint8_t size)
{
while (size > 0) {
if (str[size-1] != 0)
return size;
size--;
}
return size;
}
#endif
PhaseData *phaseaddress(uint8_t idx)
{
return &g_model.phaseData[idx];