Skip to content

Commit 1e163d5

Browse files
authoredMar 16, 2025··
Renaming from friend to omi (#2016)
part of #1973
2 parents 44f7c6e + 2f170f8 commit 1e163d5

File tree

48 files changed

+132
-138
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+132
-138
lines changed
 

‎OpenGlass/firmware/firmware.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
// Uncomment to switch the codec
1515
// Opus is still under development
1616
// Mulaw is used with the web app
17-
// PCM is used with the Friend app
17+
// PCM is used with the Omi app
1818

1919
// To use with the web app, comment CODEC_PCM and
2020
// uncomment CODEC_MULAW
@@ -69,7 +69,7 @@ OpusEncoder *opus_encoder = nullptr;
6969
#define BATTERY_SERVICE_UUID (uint16_t)0x180F
7070
#define BATTERY_LEVEL_CHAR_UUID (uint16_t)0x2A19
7171

72-
// Main Friend Service
72+
// Main Omi Service
7373
static BLEUUID serviceUUID("19B10000-E8F2-537E-4F6C-D104768A1214");
7474
static BLEUUID audioDataUUID("19B10001-E8F2-537E-4F6C-D104768A1214");
7575
static BLEUUID audioCodecUUID("19B10002-E8F2-537E-4F6C-D104768A1214");

‎app/lib/backend/preferences.dart

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class SharedPreferencesUtil {
6363

6464
BtDevice get btDevice {
6565
final String device = getString('btDevice') ?? '';
66-
if (device.isEmpty) return BtDevice(id: '', name: '', type: DeviceType.friend, rssi: 0);
66+
if (device.isEmpty) return BtDevice(id: '', name: '', type: DeviceType.omi, rssi: 0);
6767
return BtDevice.fromJson(jsonDecode(device));
6868
}
6969

@@ -152,7 +152,7 @@ class SharedPreferencesUtil {
152152
bool get showInstallAppConfirmation => getBool('showInstallAppConfirmation') ?? true;
153153

154154
set showInstallAppConfirmation(bool value) => saveBool('showInstallAppConfirmation', value);
155-
155+
156156
bool get showFirmwareUpdateDialog => getBool('v2/showFirmwareUpdateDialog') ?? true;
157157

158158
set showFirmwareUpdateDialog(bool value) => saveBool('v2/showFirmwareUpdateDialog', value);
@@ -211,7 +211,7 @@ class SharedPreferencesUtil {
211211
appsList.where((element) => element.enabled && element.worksExternally()).length;
212212

213213
bool get showConversationDeleteConfirmation => getBool('showConversationDeleteConfirmation') ?? true;
214-
214+
215215
set showConversationDeleteConfirmation(bool value) => saveBool("showConversationDeleteConfirmation", value);
216216

217217
List<App> get appsList {

0 commit comments

Comments
 (0)
Please sign in to comment.