Skip to content

Commit

Permalink
BLE: Simplify device name string creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Amerlander committed Sep 13, 2023
1 parent accf3e1 commit ded933b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions source/bluetooth/MicroBitBLEManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,9 +436,7 @@ void MicroBitBLEManager::init( ManagedString deviceName, ManagedString serialNum
#if CONFIG_ENABLED(MICROBIT_BLE_DEVICE_INFORMATION_SERVICE)
MICROBIT_DEBUG_DMESG( "DEVICE_INFORMATION_SERVICE");

ManagedString modelVersion("V2");
ManagedString disName( MICROBIT_BLE_MODEL);
disName = disName + " " + modelVersion;
ManagedString disName(MICROBIT_BLE_MODEL + ManagedString(" 3"));

ble_dis_init_t disi;
memset( &disi, 0, sizeof(disi));
Expand Down

0 comments on commit ded933b

Please sign in to comment.