Project

General

Profile

Revision 1282

Fixes: robot_read_bom_all

View differences:

main.c
126 126
}
127 127

  
128 128
static void message_read_bom_all(int length, uint8_t *data){
129
	int i;
130
	int16_t value[16];
129
	int16_t value;
131 130
	char senddata[32];
131

  
132 132
	bom_refresh(BOM_ALL);
133
	for(i=0; i<16; i++){
134
		value[i] = bom_get(i);
135
		senddata[2*i] = WORD_BYTE_0 (value[i]);
136
		senddata[(2*i)+1] = WORD_BYTE_1 (value[i]);
133

  
134
	for(uint8_t i=0; i<16; ++i){
135
		value=bom_get(i);
136
		senddata[2*i  ] = WORD_BYTE_0 (value);
137
		senddata[2*i+1] = WORD_BYTE_1 (value);
137 138
	}
138 139
	
139 140
	wl_send_global_packet(robot_station_group, robot_station_data_bom_all, senddata, 32, 0);

Also available in: Unified diff