message: SerialManager_UI: add updateCardPreset_UpDown() to match addCardPreset_UpDown()
diff: @@ -28,21 +28,30 @@ class SerialManager_UI {
  // predefined helper functions, which you can override
  virtual String getPrefix(void) { return String(quadchar_start_char) + String(ID_char) + String("x"); } //your class can use any and every String-able character in place of "x"...so, you class can have *a lot* of commands
  + // here is a method to create the very-common card (button group) to create display a parameter value
  + // and to adjust its value with a plus and minus button. Very common!
  virtual TR_Card *addCardPreset_UpDown(TR_Page *page_h, const String card_title, const String field_name, const String down_cmd, const String up_cmd) {
  if (page_h == NULL) return NULL;
  TR_Card *card_h = page_h->addCard(card_title);
  if (card_h == NULL) return NULL;
  String prefix = getPrefix(); //getPrefix() is in SerialManager_UI.h, unless it is over-ridden in this class somewhere
  - String field_name1 = ID_char + field_name;
  + String field_name1 = ID_char + field_name; //prepend the field name with the unique ID_char to that it is only associated with a particular instance of the class
  - card_h->addButton("-", prefix+down_cmd, "", 4); //label, command, id, width
  - card_h->addButton("", "", field_name1, 4); //label, command, id, width
  - card_h->addButton("+", prefix+up_cmd, "", 4); //label, command, id, width
  + card_h->addButton("-", prefix+down_cmd, "", 4); //label, command, id, width...this is the minus button
  + card_h->addButton("", "", field_name1, 4); //label, command, id, width...this text to display the value
  + card_h->addButton("+", prefix+up_cmd, "", 4); //label, command, id, width...this is the plus button
  return card_h;
  }
  + //Method to update the text associated the "button" used to display a parameter's values. This updates
  + //the button that was named by the convention used by "addCardPreset_UpDown()" so it pairs nicely with
  + //buttons created by that method.
  + void updateCardPreset_UpDown(const String field_name,const String new_text) {
  + String field_name1 = ID_char + field_name; //prepend the unique ID_char so that the text goes to the correct button and not one similarly named
  + setButtonText(field_name1, new_text);
  + }
  //attach the SerialManager
  void setSerialManager(SerialManagerBase *_sm);
  