Subject:
|
Re: Shutdown/Off while program running crashes BrickOS
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sun, 17 Jun 2007 03:08:06 GMT
|
Viewed:
|
15881 times
|
| |
| |
> I have a big and somewhat complicated BrickOS program that I believe is
> reasonably well behaved. All my loops monitor shutdown_requested and I
> have
> tested stopping the program with the Run button while the program is in
> various
> states and it always seems to shutdown perfectly. My problem is if I
> shutdown
> with the Off button. In that case the firmware crashes and I have to pull
> the
> battery out to reset the RCX and then re-download the firmware.
>
> I believe the same thing happens if I leave the program running and the
> RCX does
> an auto-shutoff though I don't have recent experience with this. How do
> you set
> the auto-shutoff to either a very long time or disable it completely?
Gus,
It sounds like the code is testing for pressing the run button, but not
pressing the power button.
I would think testing for shutdown would be good enough, but who knows...
:) What version of BrickOS are you using?
I'd be glad to take a look at it, if you want.
Steve
|
|
Message has 1 Reply:
Message is in Reply To:
4 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|