A diff would show you..

br
Erlo
On 25/10/2019 08.19, Shivakumar R via Sdcc-user wrote:
> Thank you Bob!
> In all my efforts, I did not once comment the second and third if
> statements in the not working code, so yes, I missed this blunder.
> 
> Thanks and Warm Regards
> Shiv
> 
> 
> On Friday, October 25, 2019, 11:38:39 AM GMT+5:30, Bob Dunlop
> <bob.dun...@xyzzy.org.uk> wrote:
> 
> 
> Hi,
> 
> On Fri, Oct 25 at 03:32, Shivakumar R via Sdcc-user wrote:
>> Perhaps you're right. Maybe I did. Maybe I just couldn't find it.??
> 
> Second big if statement in NOT WORKING code.
> 
>         if((PC_IDR &= (1 << DnKey_Pin))==0)
> 
> Note &= rather than &
> 
> As a consequence you are turning off a lot of bits in PC_IDR.
> 
> -- 
>         Bob Dunlop
> 
> 
> 
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net <mailto:Sdcc-user@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
> 
> 
> _______________________________________________
> Sdcc-user mailing list
> Sdcc-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
> 



_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to