ERIS CORE

◆ setFile()

void FLASHMEM ControlButton::setFile ( const char *  filename)
inline

Definition at line 51 of file ControlButton.h.

51  {
52  if (strlen(filename) < MAX_TEXT_LENGTH - 1){strcpy(img_filename,filename);
53  } else safer_strncpy(img_filename,filename,MAX_TEXT_LENGTH - 1);
54  using_image=true;
55  };
bool safer_strncpy(char *dest, const char *source, uint16_t dest_size)
a safer strncpy
Definition: ErisUtils.cpp:20
char img_filename[MAX_TEXT_LENGTH]
Definition: ControlButton.h:65

References img_filename, safer_strncpy(), and using_image.

Referenced by setImage().

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