Skip to content

Commit

Permalink
vendor sensors ivi
Browse files Browse the repository at this point in the history
Signed-off-by: Ranjan, Rajani <[email protected]>
  • Loading branch information
RajaniRanjan committed Aug 25, 2023
1 parent 7445d51 commit f8a083e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sensors/2.0/iiohal_mediation_v2.0/iioClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,18 @@ class iioClient {

public:
static iioClient *get_iioClient() {
char value[PROPERTY_VALUE_MAX] = {0};
property_get("vendor_virtual_device_prop", value, "invalid_ip_addr");
if(strcmp(value, "bare-metal")){
if (!iioc)
iioc = new iioClient;

return iioc;
}
else
{
return NULL;
}
}
/**
* distructor called when iioclient object deleted.
Expand Down

0 comments on commit f8a083e

Please sign in to comment.