This commit is contained in:
parent
d0c8c2a418
commit
37988fbfd4
@ -180,8 +180,20 @@ ReturnValue_t CoreController::executeAction(ActionId_t actionId, MessageQueueId_
|
||||
const uint8_t *data, size_t size) {
|
||||
switch (actionId) {
|
||||
case (ANNOUNCE_VERSION): {
|
||||
// uint32_t p1=
|
||||
triggerEvent(VERSION_INFO);
|
||||
uint32_t p1 = (common::OBSW_VERSION_MAJOR << 24) | (common::OBSW_VERSION_MINOR << 16) |
|
||||
(common::OBSW_VERSION_REVISION << 8);
|
||||
uint32_t p2 = 0;
|
||||
if (strcmp("", common::OBSW_VERSION_CST_GIT_SHA1) != 0) {
|
||||
p1 |= 1;
|
||||
// Only copy first 4 letters of git hash
|
||||
memcpy(&p2, common::OBSW_VERSION_CST_GIT_SHA1 + 3, 4);
|
||||
}
|
||||
|
||||
triggerEvent(VERSION_INFO, p1, p2);
|
||||
return HasActionsIF::EXECUTION_FINISHED;
|
||||
}
|
||||
case (ANNOUNCE_CURRENT_IMAGE): {
|
||||
triggerEvent(CURRENT_IMAGE_INFO, CURRENT_CHIP, CURRENT_COPY);
|
||||
return HasActionsIF::EXECUTION_FINISHED;
|
||||
}
|
||||
case (LIST_DIRECTORY_INTO_FILE): {
|
||||
|
Loading…
x
Reference in New Issue
Block a user