Rev 1465 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1465 | Rev 1466 | ||
---|---|---|---|
Line 133... | Line 133... | ||
133 | blink = 50; |
133 | blink = 50; |
134 | pwm_status = 1; |
134 | pwm_status = 1; |
Line 135... | Line 135... | ||
135 | 135 | ||
Line 136... | Line 136... | ||
136 | } else { |
136 | } else { |
137 | - | ||
138 | if (I2C_timeout == 0) { // no i2c signal |
- | |
139 | blink = 0; |
- | |
140 | pwm_status = 2; |
137 | |
141 | } else { |
138 | if (I2C_timeout) { |
- | 139 | I2C_timeout--; |
|
- | 140 | if (I2C_timeout == 0) { // no i2c signal |
|
142 | I2C_timeout--; |
141 | blink = 0; |
143 | if (I2C_timeout == 0) { |
142 | pwm_status = 2; |
144 | set_pwm_neutral(); |
143 | set_pwm_neutral(); |
145 | set_pwm(); |
144 | set_pwm(); |
146 | } |
145 | } |