Skip to content

Commit

Permalink
Fix some spellings
Browse files Browse the repository at this point in the history
  • Loading branch information
nisargjhaveri committed Mar 12, 2024
1 parent 45cf917 commit 30df7de
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion aa_wireless_dongle/package/aawg/src/aawgd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ int main(void) {
// Per connection setup and processing
if (std::getenv("AAWG_CONNECTION_WAIT_FOR_ACCESSORY") != nullptr) {
Logger::instance()->info("Waiting for the accessory to connect first\n");
UsbManager::instance().enableDefaultAndWaitForAccessroy();
UsbManager::instance().enableDefaultAndWaitForAccessory();
}

AAWProxy proxy;
Expand Down
4 changes: 2 additions & 2 deletions aa_wireless_dongle/package/aawg/src/bluetoothHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ static constexpr const char* INTERFACE_BLUEZ_DEVICE = "org.bluez.Device1";
static constexpr const char* INTERFACE_BLUEZ_PROFILE_MANAGER = "org.bluez.ProfileManager1";

static constexpr const char* AAWG_PROFILE_OBJECT_PATH = "/com/aawgd/bluetooth/aawg";
static constexpr const char* AAWG_PROfILE_UUID = "4de17a00-52cb-11e6-bdf4-0800200c9a66";
static constexpr const char* AAWG_PROFILE_UUID = "4de17a00-52cb-11e6-bdf4-0800200c9a66";

static constexpr const char* HSP_HS_PROFILE_OBJECT_PATH = "/com/aawgd/bluetooth/hsp";
static constexpr const char* HSP_AG_UUID = "00001112-0000-1000-8000-00805f9b34fb";
Expand Down Expand Up @@ -110,7 +110,7 @@ void BluetoothHandler::exportProfiles() {
Logger::instance()->info("Failed to register AA Wireless profile\n");
}

registerProfile(AAWG_PROFILE_OBJECT_PATH, AAWG_PROfILE_UUID, {
registerProfile(AAWG_PROFILE_OBJECT_PATH, AAWG_PROFILE_UUID, {
{"Name", DBus::Variant("AA Wireless")},
{"Role", DBus::Variant("server")},
{"Channel", DBus::Variant(uint16_t(8))},
Expand Down
4 changes: 2 additions & 2 deletions aa_wireless_dongle/package/aawg/src/proxyHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void AAWProxy::handleClient(int server_sock) {
Logger::instance()->info("Tcp server accepted connection\n");

if (std::getenv("AAWG_CONNECTION_WAIT_FOR_ACCESSORY") == nullptr) {
UsbManager::instance().enableDefaultAndWaitForAccessroy();
UsbManager::instance().enableDefaultAndWaitForAccessory();
}

Logger::instance()->info("Opening usb accessory\n");
Expand All @@ -132,7 +132,7 @@ void AAWProxy::handleClient(int server_sock) {
return;
}

Logger::instance()->info("Frowarding data between TCP and USB\n");
Logger::instance()->info("Forwarding data between TCP and USB\n");
std::atomic<bool> should_exit = false;
std::thread usb_tcp(&AAWProxy::forward, this, ProxyDirection::USB_to_TCP, std::ref(should_exit));
std::thread tcp_usb(&AAWProxy::forward, this, ProxyDirection::TCP_to_USB, std::ref(should_exit));
Expand Down
2 changes: 1 addition & 1 deletion aa_wireless_dongle/package/aawg/src/usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void UsbManager::disableGadget() {
Logger::instance()->info("USB Manager: Disabled all USB gadgets\n");
}

void UsbManager::enableDefaultAndWaitForAccessroy() {
void UsbManager::enableDefaultAndWaitForAccessory() {
std::promise<void> accessoryPromise;

UeventMonitor::instance().addHandler([&accessoryPromise](UeventEnv env) {
Expand Down
2 changes: 1 addition & 1 deletion aa_wireless_dongle/package/aawg/src/usb.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class UsbManager {
static UsbManager& instance();

void init();
void enableDefaultAndWaitForAccessroy();
void enableDefaultAndWaitForAccessory();
void switchToAccessoryGadget();
void disableGadget();

Expand Down

0 comments on commit 30df7de

Please sign in to comment.