| 47 | #ifdef HAS_RGB_LED |
| 48 | |
| 49 | void addToRGBQueue(struct ledInstructionRGB* rgb, bool requeue) { |
| 50 | rgb->reQueue = requeue; |
| 51 | if (!rgbLedQueue) { |
| 52 | delete rgb; |
| 53 | return; |
| 54 | } |
| 55 | BaseType_t queuestatus = xQueueSend(rgbLedQueue, &rgb, 0); |
| 56 | if (queuestatus == pdFALSE) { |
| 57 | delete rgb; |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | void addFadeColor(CRGB cname) { |
| 62 | struct ledInstructionRGB* rgb = new struct ledInstructionRGB; |
no outgoing calls
no test coverage detected