Subject:
|
Re: LONG DELAY after pressing RUN button (to end the program)
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sun, 27 Apr 2003 02:21:25 GMT
|
Viewed:
|
4018 times
|
| |
 | |
In lugnet.robotics.rcx.legos, CarlosLuis Rendón Monterroso writes:
> I have another question now. I've two different kernels, legOS 0.2.6 and
> brickOS 0.2.6.10 well, when using brickOS I'm experiencing a big delay after
> pressing the RUN button in order to stop the program (the LCD displays
> "STOP" for quite a long time). On the other side, when using legOS that does
> not happen. The program is quite simple, it's just for testing the lnp
> addresing layer.
>
> My question is why is this happening just with brickOS and not with legOS?
Because stuff was changed in BrickOS. I can't tell you too much, but I'm
sure it's trying to shut-down the program in a cleaner way.
I think BrickOS waits 2 seconds before killing tasks.
You need to change your LegOS loop:
while(true)
to BrickOS:
while(!shutdown_requested())
>
> while (true) {
> if (go == 1) {
> cputs ("hello");
> msleep(500);
> cls();
> go = 0;
> }
> }
|
|
Message has 1 Reply:
Message is in Reply To:
3 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
|
|
|
|