nthallen / monarch

Monarch Data Acquisition System
0 stars 1 forks source link

TMC: assertion failure on malformed text format #213

Open nthallen opened 6 months ago

nthallen commented 6 months ago

TM typedef int16_t WTX_SolRad_t { text "5.1lf"; } With the missing '%', this causes an assertion failure in gen_e_tcvt(), which is sort of a last ditch option in generate_calibrations(). This should probably have been headed off with an error in classify_conv() or even parse_txtfmt().

Has there ever been a reason to support anything except a %-coded format? In theory, it could be used to append a unit or prepend something, but that would interfere with many other things that assume the text conversion is a number.