Skip to content

Commit

Permalink
test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pvvx committed Mar 3, 2022
1 parent 3fc70ff commit d81e2eb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/rds_count.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ _attribute_ram_code_ void set_rds_adv_data(void) {
v = (pext_adv_cnt_t)&adv_buf.data[sizeof(ext_adv_dig_t)];
}
}
#if USE_HA_BLE_FORMAT
else {
rds.adv_counter &= 0x1f;
rds.adv_counter |= ((uint8_t)measured_data.count ^ 0xffffffe0) & 0xffffffe0;
set_ha_ble_adv_event(rds.adv_counter);
return;
}
#endif
v->size = 6;
v->uid = GAP_ADTYPE_SERVICE_DATA_UUID_16BIT; // 16-bit UUID
v->UUID = ADV_UUID16_Count24bits;
Expand Down

0 comments on commit d81e2eb

Please sign in to comment.