Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0b54258 authored by Jakub Pawłowski's avatar Jakub Pawłowski Committed by Gerrit Code Review
Browse files

Merge "Fix 0 CoD" into main

parents a0cb0700 3e3809f7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -671,6 +671,12 @@ void btif_update_remote_properties(const RawAddress& bdaddr, BD_NAME bd_name, DE
    cod = old_cod;
  }

  if (cod == 0) {
    /* Spec says UNCLASSIFIED is default value */
    log::info("CoD from storage was zero");
    cod = COD_UNCLASSIFIED;
  }

  if (old_cod != cod) {
    log::info("{} CoD: 0x{:06x} -> 0x{:06x}", bdaddr, old_cod, cod);
  }