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

Commit 0c21f34f authored by Ian Coolidge's avatar Ian Coolidge
Browse files

service: Fix permissions/properties argument order.

These were swapped, resulting in a bad configuration
of the control attribute.

Change-Id: I93dd69da1ace70a249d3a8d1856b173a52462a6c
parent 5f8999d0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -663,8 +663,8 @@ bool Server::AddBlob(const Uuid &id, const Uuid &control_id, int properties,
  // Control attributes have fixed permissions/properties.
  btstat = internal_->AddCharacteristic(
      control_id,
      kPermissionRead | kPermissionWrite,
      kPropertyRead | kPropertyWrite);
      kPropertyRead | kPropertyWrite,
      kPermissionRead | kPermissionWrite);
  internal_->api_synchronize.wait(lock);

  // Finally, associate the control attribute with the value attribute.