Detecting if the CPU has been cold restarted

Wondering if there is any way to detect if a cold restart has been done. I need to run some code initially if this is the case.

Originally done this in the INIT of the program but this is also executed during a warm restart also.

Thanks

Hi,

should be possible using the function RTinfo, output .init_reason

Best regards.

Hello,

Many thanks will use that then.

1 Like