Revision 1378
Modified bom_refresh() to check analog_loop_running()
bom.c | ||
---|---|---|
167 | 167 |
**/ |
168 | 168 |
void bom_refresh(int bit_field) { |
169 | 169 |
int i; |
170 |
int loop_running; |
|
170 | 171 |
|
171 |
analog_stop_loop(); |
|
172 |
//Check analog loop status |
|
173 |
loop_running = analog_loop_running(); |
|
174 |
if(loop_running) |
|
175 |
analog_stop_loop(); |
|
172 | 176 |
|
173 | 177 |
for(i = 0; i < NUM_BOM_LEDS; i++) { |
174 | 178 |
if(bit_field & 0x1) { |
... | ... | |
178 | 182 |
bit_field = bit_field >> 1; |
179 | 183 |
} |
180 | 184 |
|
181 |
analog_start_loop(); |
|
185 |
//Restore analog loop status |
|
186 |
if(loop_running) |
|
187 |
analog_start_loop(); |
|
182 | 188 |
} |
183 | 189 |
|
184 | 190 |
/** |
Also available in: Unified diff