> Dears all, there is some fault in following procedure. Function returns
> value, but with same number.

> data>>1;

That might be your problem: "data>>" shifts data but does NOT put the result 
back into data.
The compiler probably optimizes this statement out, as it has no effect in 
practice.

What you probably wanted to do was:

data = data >> 1;

or in short form:

data >>= 1;



HTH,

--
Vince


_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat

Reply via email to