Quote:
Originally Posted by Joel J.
I have an itchy finger that wants to change that alias to remove the float. Is this kosher? Would bad things happen?
|
I don't see why they would, unless any code depends on it (which you would find out about very quickly

)
If you want to be safe, you can just take advantage of the global nature of the rxdata struct to get at the raw data:
Code:
if( rxdata.rc_main_batt < 127 )
printf("HAMMER TIME!\n");
typedef struct { /* begin rx_data_record structure */
...
unsigned char rc_main_batt, rc_backup_batt;
...
} rx_data_record;