Rename Pinetime-JF -> InfiniTime

This commit is contained in:
JF 2020-09-20 11:09:50 +02:00
parent 20f5b0ffba
commit d45cf23611
2 changed files with 4 additions and 4 deletions

View File

@ -107,7 +107,7 @@ void NimbleController::Init() {
void NimbleController::StartAdvertising() {
if(ble_gap_adv_active()) return;
ble_svc_gap_device_name_set("Pinetime-JF");
ble_svc_gap_device_name_set(deviceName);
/* set adv parameters */
struct ble_gap_adv_params adv_params;
@ -135,8 +135,8 @@ void NimbleController::StartAdvertising() {
fields.uuids128_is_complete = 1;
fields.tx_pwr_lvl = BLE_HS_ADV_TX_PWR_LVL_AUTO;
rsp_fields.name = (uint8_t *)"Pinetime-JF";
rsp_fields.name_len = strlen("Pinetime-JF");
rsp_fields.name = (uint8_t *)deviceName;
rsp_fields.name_len = strlen(deviceName);
rsp_fields.name_is_complete = 1;
ble_gap_adv_set_fields(&fields);

View File

@ -43,7 +43,7 @@ namespace Pinetime {
uint16_t connHandle();
private:
static constexpr const char* deviceName = "Pinetime-JF";
static constexpr const char* deviceName = "InfiniTime";
Pinetime::System::SystemTask& systemTask;
Pinetime::Controllers::Ble& bleController;
DateTime& dateTimeController;