epics-modules / mrfioc2

EPICS driver for Micro Research Finland event timing system devices
http://epics-modules.github.io/mrfioc2/
Other
8 stars 30 forks source link

macro needs to be in hexadecimal form to work #30

Closed krmpotic closed 4 years ago

mdavidsaver commented 4 years ago

While I don't think this change will cause a problem, I also don't think it should be necessary. What error are you seeing?

Parsing of this value should be done with strtoul() with base=0 which understands decimal or '0x' prefixed hex.

https://github.com/epics-modules/mrfioc2/blob/3c60a241f7a0326bd1280d177fcc03f8d263cf5e/mrfCommon/src/linkoptions.c#L60

krmpotic commented 4 years ago

You are right, this is unnecessary. For some reason during testing I though it didn't work the other way. I tested again and it works both ways.