<div dir="ltr"><div>Hello, always nice to hear about new drivers :)<br></div><div><br></div><div>OTOH, check for any variables you might have been re-using, so their earlier state impacts later runs - whether buffers allocated statically (or by caller without rewinding the pointer and maybe nulling the contents), or position counters, etc. Similarly, be sure to pre-initialize anything of value and not start out with random bits from the stack.<br></div><div><br></div><div>Also if it is about a series of calls - are there some (loop?) conditions between the calls that might just preclude them from being called in the first place?</div><div><br></div><div>Old-school tracing with debug printouts is good in very many cases; otherwise it can really help to stage a run in an IDE with a debugger. Cross-platform wise, I've had consistently good experience with NetBeans (installing the C/C++ plugin from the NB 8.2 archive after every NB upgrade is a PITA though); VSCode also worked (at least when I drilled into NUT for Windows builds with MSYS2) - hints on both are in NUT docs.</div><div><br></div><div>Hope this helps,</div><div>Jim Klimov</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Oct 22, 2024 at 5:01 AM William R. Elliot <<a href="mailto:bill@wreassoc.com">bill@wreassoc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello all,<br>
<br>
In my new driver I have a function that searches for the position of <br>
a known substring in a delimited string. I am trying to populate a <br>
series of integer variables with the position value of various <br>
substrings. The first call to the function performs correctly but the <br>
remaining calls in the code series are not being executed (there are <br>
six more calls after the first successful one). Any ideas why only <br>
the first call is being done?<br>
<br>
Similarly, I have another function that takes a position variable and <br>
pulls the data in the nth position from a delimited string. There is <br>
also a series of these called in a row and only the first is being called.<br>
<br>
Any ideas on what to look for would be appreciated.<br>
<br>
Thanks,<br>
<br>
Bill<br>
<br>
<br>
<br>
-- <br>
This email has been checked for viruses by AVG antivirus software.<br>
<a href="http://www.avg.com" rel="noreferrer" target="_blank">www.avg.com</a><br>
<br>
_______________________________________________<br>
Nut-upsdev mailing list<br>
<a href="mailto:Nut-upsdev@alioth-lists.debian.net" target="_blank">Nut-upsdev@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev</a><br>
</blockquote></div>