Compare commits

...

2 Commits

Author SHA1 Message Date
William Emfinger c324bf85dc
Merge 5c007cb845 into bf4b5d4ffa 2024-04-11 16:55:24 +00:00
William Emfinger 5c007cb845 fix #148 on h2zero/esp-nimble-cpp 2024-04-11 11:55:20 -05:00
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ bool NimBLEService::start() {
// Nimble requires the last characteristic to have it's uuid = 0 to indicate the end
// of the characteristics for the service. We create 1 extra and set it to null
// for this purpose.
pChr_a = new ble_gatt_chr_def[numChrs + 1];
pChr_a = new ble_gatt_chr_def[numChrs + 1]{};
int i = 0;
for(auto chr_it = m_chrVec.begin(); chr_it != m_chrVec.end(); ++chr_it) {
if((*chr_it)->m_removed > 0) {