New UI merged
This commit is contained in:
@@ -21,6 +21,10 @@
|
||||
#ifndef _STRHELPERS_H_
|
||||
#define _STRHELPERS_H_
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#define TEXT_AT_INDEX(val, idx) std::string(val+1+val[0]*(idx), min<uint8_t>(val[0], strlen(val+1+val[0]*(idx))))
|
||||
|
||||
char * strAppend(char * dest, const char * source, int len=0);
|
||||
char * strAppendUnsigned(char * dest, uint32_t value, uint8_t digits=0, uint8_t radix=10);
|
||||
char * strAppendSigned(char * dest, int32_t value, uint8_t digits=0, uint8_t radix=10);
|
||||
@@ -40,4 +44,14 @@ char * getSwitchName(char * dest, swsrc_t idx);
|
||||
char * getSourceString(char * dest, mixsrc_t idx);
|
||||
#endif
|
||||
|
||||
char * getFlightModeString(char * dest, int8_t idx);
|
||||
#define SWITCH_WARNING_STR_SIZE 3
|
||||
char * getSwitchWarningString(char * dest, swsrc_t idx);
|
||||
|
||||
char * getSourceString(mixsrc_t idx);
|
||||
char * getSwitchPositionName(swsrc_t idx);
|
||||
char * getSwitchWarningString(swsrc_t idx);
|
||||
char * getCurveString(int idx);
|
||||
char * getTimerString(int32_t tme, uint8_t hours);
|
||||
|
||||
#endif // _STRHELPERS_H_
|
||||
|
||||
Reference in New Issue
Block a user