Subject:
|
Re: patch for lnpd ( Collision problem in far-mode )
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Mon, 14 Feb 2000 11:08:26 GMT
|
Viewed:
|
3506 times
|
| |
| |
I applied the patch manually (ok. I admit it was fairly obvious where the
changes had to be made)
Maby I made a mistake applying the patch or something as I still get
Collission errors. I tried two IR towers in both near and far mode, still the
same problem.
I did a make clean; make realclean; and finally a make.
I still get this trying to apply the patch after making the changes suggested
by Jim and Martin.
abacus:~/lego/lnpd+liblnp/lnpd$ patch transceiver.c < patch-trans
patching file `transceiver.c'
patch: **** malformed patch at line 5: static unsigned char* tx_next;
However, I am fairly sure I applied the patch manually ok.
Should I still get this error?
In lugnet.robotics.rcx.legos, Martin Cornelius writes:
> Michael Marklew wrote:
> >
> > So I tried loading your patch Martin. Sorry to be a pain, I assume this is how
> > I apply the patch you wrote?
>
>
> Pardon, Mike, i should have anticipated that, because i had the same
> problem when i first tried to apply a patch. The usage of patch is a
> little uncommon: You have to provide the patch through stdin !. Thus,
> i'd suggest the following procedure:
>
> - First, copy the patch to file patch-trans ( you already did that, i
> think )
> - Make sure you have the original transceiver.c from the tarball in
> place.
> - To keep a copy of the original (optional):
> $> cp transceiver.c transceiver.c.old
>
> - Apply the patch:
> $> patch transceiver.c < patch-trans
> ^^^ ( stdin redirection )
>
> The only output seen with a recent version of patch should be:
> patching file transceiver.c
>
> If you have an older version of patch, it might output some information
> about it's operation. Anyways,
> if you get any warnings or errors, like hunk rejected or so, there is a
> problem with your original.
>
> BTW, do you experience the same problems when your Tower is switched to
> near-mode ?
>
> Have a nice sunday, Martin
|
|
Message has 1 Reply:
Message is in Reply To:
21 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
|
|
|
|