MCPcopy Create free account
hub / github.com/kiibohd/controller / modify_indicator_string

Function modify_indicator_string

Bootloader/Devices/sam4s.c:63–79  ·  view source on GitHub ↗

Modify indicator string

Source from the content-addressed store, hash-verified

61
62// Modify indicator string
63static 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

Callers 1

Chip_resetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…