Skip to content

Commit

Permalink
Merge pull request #117 from jschmi201/master
Browse files Browse the repository at this point in the history
DELIA-44559 : Change CS thunder quirk to return array, not string.
  • Loading branch information
vijs authored Jul 13, 2020
2 parents 2457bdb + 90b966b commit 31826f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 3 additions & 8 deletions ControlService/ControlService.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ namespace WPEFramework {
registerMethod("findMyRemote", &ControlService::findMyRemoteWrapper, this);

setApiVersionNumber(7);
setQuirks("DELIA-43686");
}

ControlService::~ControlService()
Expand Down Expand Up @@ -727,7 +726,9 @@ namespace WPEFramework {
uint32_t ControlService::getQuirks(const JsonObject& parameters, JsonObject& response)
{
LOGINFOMETHOD();
response["quirks"] = m_quirks;
JsonArray array;
array.Add("DELIA-43686");
response["quirks"] = array;
returnResponse(true);
}

Expand Down Expand Up @@ -1596,12 +1597,6 @@ namespace WPEFramework {
m_apiVersionNumber = apiVersionNumber;
}

void ControlService::setQuirks(string quirks)
{
LOGINFO("setting quirks: %s", quirks);
m_quirks = quirks;
}

int ControlService::numericCtrlm2Int(ctrlm_key_code_t ctrlm_key)
{
int keyCode = 0; // default
Expand Down
2 changes: 0 additions & 2 deletions ControlService/ControlService.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ namespace WPEFramework {

// Local utility methods
void setApiVersionNumber(uint32_t apiVersionNumber);
void setQuirks(string quirks);
int numericCtrlm2Int(ctrlm_key_code_t ctrlm_key);

char* getRemoteModel(char *remoteType);
Expand All @@ -163,7 +162,6 @@ namespace WPEFramework {
static ControlService* _instance;
private:
uint32_t m_apiVersionNumber;
string m_quirks;

JsonObject m_remoteInfo[CTRLM_MAIN_MAX_BOUND_CONTROLLERS];
int m_numOfBindRemotes;
Expand Down

0 comments on commit 31826f7

Please sign in to comment.