Rev 2202 | Rev 2204 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 2202 | Rev 2203 | ||
|---|---|---|---|
| Line 1242... | Line 1242... | ||
| 1242 | * IR_OK if data parsed successfully, one of several errormessages if not |
1242 | * IR_OK if data parsed successfully, one of several errormessages if not |
| 1243 | */ |
1243 | */ |
| 1244 | 1244 | ||
| 1245 | int8_t parseViking(const uint16_t *buf, uint8_t len, uint8_t index, Ir_Protocol_Data_t *proto) |
1245 | int8_t parseViking(const uint16_t *buf, uint8_t len, uint8_t index, Ir_Protocol_Data_t *proto) |
| 1246 | { |
1246 | { |
| - | 1247 | #if IR_RX_CONTINUOUS_MODE==1 |
|
| 1247 | /* check if we have correct amount of data */ |
1248 | /* check if we have correct amount of data */ |
| 1248 | if (len < 90) { |
1249 | if (len < 90) { |
| 1249 | return IR_NOT_CORRECT_DATA; |
1250 | return IR_NOT_CORRECT_DATA; |
| 1250 | } |
1251 | } |
| 1251 | uint8_t i, i2; |
1252 | uint8_t i, i2; |
| Line 1297... | Line 1298... | ||
| 1297 | proto->protocol=IR_PROTO_VIKING; |
1298 | proto->protocol=IR_PROTO_VIKING; |
| 1298 | proto->timeout=0; |
1299 | proto->timeout=0; |
| 1299 | proto->data=rawbitsTemp; |
1300 | proto->data=rawbitsTemp; |
| 1300 | 1301 | ||
| 1301 | return IR_OK; |
1302 | return IR_OK; |
| - | 1303 | #else |
|
| - | 1304 | return IR_NOT_CORRECT_DATA; |
|
| - | 1305 | #endif |
|
| 1302 | } |
1306 | } |
| 1303 | #endif |
1307 | #endif |