| 490 | } |
| 491 | |
| 492 | void setPresetSlot(int slot, json_t *data) { |
| 493 | if (slot < 0 || slot >= NUM_CHANNELS) { |
| 494 | return; |
| 495 | } |
| 496 | if (presetSlots[slot]) { |
| 497 | json_decref(presetSlots[slot]); |
| 498 | } |
| 499 | presetSlots[slot] = data; |
| 500 | } |
| 501 | |
| 502 | void savePresetSlot(int slot) { |
| 503 | if (slot < 0 || slot >= NUM_CHANNELS) { |
nothing calls this directly
no outgoing calls
no test coverage detected