comparison gsm-fw/services/etm/etm_api.c @ 193:f9ac53d8e999

gsm-fw/services/etm: etm_get16(): fix for bad C (sequence points violation) while at it, fixed echo and dieid as well
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 25 Nov 2013 06:12:19 +0000
parents 9dbf3248a197
children 6de5661d1fe1
comparison
equal deleted inserted replaced
192:707aa640b2dc 193:f9ac53d8e999
143 143
144 int etm_get16(void *buf) 144 int etm_get16(void *buf)
145 { 145 {
146 unsigned char *p = buf; 146 unsigned char *p = buf;
147 147
148 int value = 148 int value = (p[0] | (p[1] << 8));
149 (*p++ | (*p << 8));
150 149
151 tr_etm(TgTrEtmLow, "ETM API: _get16(%d)", value); 150 tr_etm(TgTrEtmLow, "ETM API: _get16(%d)", value);
152 151
153 return value; 152 return value;
154 } 153 }