ERIS CORE

◆ setText()

void FLASHMEM ControlButton::setText ( const char *  name_string)
inline

Definition at line 38 of file ControlButton.h.

38  {
39  if (strlen(name_string) < MAX_TEXT_LENGTH - 1){strcpy(text,name_string);
40  } else safer_strncpy(text,name_string,MAX_TEXT_LENGTH - 1);
41  using_image=false;
42  };
bool safer_strncpy(char *dest, const char *source, uint16_t dest_size)
a safer strncpy
Definition: ErisUtils.cpp:20
char text[MAX_TEXT_LENGTH]
Definition: ControlButton.h:60

References safer_strncpy(), text, and using_image.

Referenced by AppAudioToPolyphonic::initialize().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: