This issue appears usually when you do not manage in a correct way the
timing required by a specific hardware and the costs of your code length is
higher than required for the device to run properly. Common workaround is
to use interrupts or other sequential techniques.

Example: DS18B20 is a temperature sensor which requires 750ms or so for a
12bit conversion. If you have complex software involving USB interrupts,
real time clock generation, 7segment LED multiplexed display, etc , and
those are not shared correctly with your resources ( aka you try everything
to be solved in pure software) at one moment your code will freeze at a
specific code length. Removing some lines, no matter that are if/end if or
something else will apparently make your code functional, but the issue is
not where you suppose it is...

Instead of if/end if you may use "case of". However it will not do
something special or different compared with if/end if, except a more
understandable structure for your source.
best wishes,


On Sat, Aug 6, 2022 at 7:00 PM flyway38 <[email protected]> wrote:

> Hi all,
>
> Is there any limit in using IF/ END IF conditions?
> My code was running good untill added one more IF/END IF.
> At first didn't realize about a limit in using these conditions code, but
> then figured out that any other IF/END IF removal would let my code run ok
> again...
> Does anyone knows anything about this issue?
> Thank you very much.
>
> Cheers,
> Filipe Santos.
>
> --
> You received this message because you are subscribed to the Google Groups
> "jallib" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jallib/3f8189dd-fd0a-4df9-8948-518503485e61n%40googlegroups.com
> <https://groups.google.com/d/msgid/jallib/3f8189dd-fd0a-4df9-8948-518503485e61n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/CAM%2Bj4qvj7JtkTrN%3D-fFn16sqpnf9kWrF3EMaJ96J5SvVdtg_wQ%40mail.gmail.com.

Reply via email to