Rev 1209 | Rev 1211 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1209 | Rev 1210 | ||
---|---|---|---|
Line 282... | Line 282... | ||
282 | ExternStickNick = 0; |
282 | ExternStickNick = 0; |
283 | ExternStickRoll = 0; |
283 | ExternStickRoll = 0; |
284 | ExternStickGier = 0; |
284 | ExternStickGier = 0; |
285 | } |
285 | } |
286 | if(SenderOkay) SenderOkay--; |
286 | if(SenderOkay) SenderOkay--; |
287 | if(!I2CTimeout) |
287 | if(!--I2CTimeout || MissingMotor) |
288 | { |
288 | { |
289 | I2CTimeout = 5; |
289 | if(!I2CTimeout) |
- | 290 | { |
|
- | 291 | i2c_reset(); |
|
290 | i2c_reset(); |
292 | I2CTimeout = 5; |
- | 293 | } |
|
291 | if((BeepMuster == 0xffff) && MotorenEin) |
294 | if((BeepMuster == 0xffff) && MotorenEin) |
292 | { |
295 | { |
293 | beeptime = 10000; |
296 | beeptime = 10000; |
294 | BeepMuster = 0x0080; |
297 | BeepMuster = 0x0080; |
295 | } |
298 | } |
296 | } |
299 | } |
297 | else |
300 | else |
298 | { |
301 | { |
299 | I2CTimeout--; |
- | |
300 | ROT_OFF; |
302 | ROT_OFF; |
301 | } |
303 | } |
302 | if(SIO_DEBUG && (!UpdateMotor || !MotorenEin)) |
304 | if(SIO_DEBUG && (!UpdateMotor || !MotorenEin)) |
303 | { |
305 | { |
304 | DatenUebertragung(); |
306 | DatenUebertragung(); |