Skip to content

Commit

Permalink
Made the quick start command select different signal
Browse files Browse the repository at this point in the history
  • Loading branch information
ViktorWalter committed Apr 16, 2024
1 parent bd0d970 commit e4dbc6b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/led_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,19 @@ namespace uvdar {
/* uvdar_core::SetIntIndex::Request ind_req; */
/* uvdar_core::SetIntIndex::Response ind_res; */
/* ind_req.value = req.value; */
callbackSelectSingleSequence(req,res);
/* callbackSelectSingleSequence(req,res); */
uvdar_core::SetInts::Request req_seqences;
uvdar_core::SetInts::Response res_seqences;
unsigned char val = (unsigned char)(req.value);
req_seqences.value.push_back(4*val+0);
req_seqences.value.push_back(4*val+1);
req_seqences.value.push_back(4*val+2);
req_seqences.value.push_back(4*val+3);
callbackSelectSequences(req_seqences, res_seqences);

res.success = true;
char message[100];
sprintf(message, "Quickstart done. Sequences set to [%d,%d,%d,%d].", 4*val+0, 4*val+1, 4*val+2, 4*val+3);
return true;
}

Expand Down

0 comments on commit e4dbc6b

Please sign in to comment.