Modify indicator string
| 61 | |
| 62 | // Modify indicator string |
| 63 | static void modify_indicator_string(uint16_t *indicator_string, uint16_t replacement) |
| 64 | { |
| 65 | for ( uint8_t pos = 0; indicator_string[pos] != u'\0'; pos++ ) |
| 66 | { |
| 67 | // Looking for | character |
| 68 | if ( indicator_string[pos] == u'|' ) |
| 69 | { |
| 70 | indicator_string[pos] = replacement; |
| 71 | |
| 72 | // If shortening, also change length |
| 73 | if ( replacement == u'\0' ) |
| 74 | { |
| 75 | dfu_device_str_desc[4]->bLength = pos * 2 + 2; |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | #if DFU_EXTRA_BLE_SWD_SUPPORT == 1 |
| 82 | // Setup SWD interface |
no outgoing calls
no test coverage detected
searching dependent graphs…