It is dangerous to use continuous loops. You should, at least, provide a condition to end this infinite loop (such as an external event: button or any other event).
Otherwise, it's easy to have an infinite loop. Just find a condition that never occurs (never becomes true) such as 'battery = or < to zero' or 'battery temperature = or < to zero', and so on...