zap icon indicating copy to clipboard operation
zap copied to clipboard

ZAP can't generate correct default values for string type attributes with a numeric value assigned

Open fessehaeve opened this issue 1 year ago • 1 comments

ZAP can't generate correct default values for string type attributes with a numeric value assigned

Example

ZAP content:

          {
            "name": "UserActiveModeTriggerInstruction",
            "code": 7,
            "mfgCode": null,
            "side": "server",
            "type": "char_string",
            "included": 1,
            "storageOption": "RAM",
            "singleton": 0,
            "bounded": 0,
            "defaultValue": "7",
            "reportable": 1,
            "minInterval": 1,
            "maxInterval": 65534,
            "reportableChange": 0
          },

Generated output:

\
  /* 16 - UserActiveModeTriggerInstruction, */\
  0x00,  0x7,\
\

fessehaeve avatar Jan 13 '25 12:01 fessehaeve

For more reference see https://csamembers.slack.com/archives/C01B01GH64E/p1736254472472859

brdandu avatar Jan 13 '25 13:01 brdandu