i'm sure there is some simple mistake in this, but i just cannot see it. the problem is that i'm trying to convert seconds to hours as follows - and it just doesn't seem to work.. please help.
hours = (int) ((unsigned long) (byte1 | byte2<bytes contain the seconds value - and the result should be stored as int. simple, but just cannot get it working!