| 444 | return true; |
| 445 | } |
| 446 | bool load_held(pb_istream_t *stream, const pb_field_t *field, void **arg) |
| 447 | { |
| 448 | auto profile = working_profile; |
| 449 | printf("found held!\r\n"); |
| 450 | auto last_held = new HeldInput(); |
| 451 | last_special = last_held; |
| 452 | proto_HeldInput input; |
| 453 | input.input.cb_input.funcs.decode = load_input_dev; |
| 454 | input.input.cb_input.arg = arg; |
| 455 | if (!pb_decode(stream, proto_HeldInput_fields, &input)) |
| 456 | { |
| 457 | printf("couldnt decode held input?\r\n"); |
| 458 | return false; |
| 459 | } |
| 460 | last_held->load(input, make_input(input.input, profile, stream)); |
| 461 | return true; |
| 462 | } |
| 463 | bool load_cycle(pb_istream_t *stream, const pb_field_t *field, void **arg) |
| 464 | { |
| 465 | auto profile = working_profile; |
nothing calls this directly
no test coverage detected