Skip to content

Commit 60f13cf

Browse files
committed
Changed builds to be considered local builds by default
1 parent 541d9ee commit 60f13cf

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

ProjectConfig.h

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*******************************************************************************
2+
* Copyright © 2025 Analog Devices Inc. All Rights Reserved.
3+
* This software is proprietary to Analog Devices, Inc. and its licensors.
4+
*******************************************************************************/
5+
#ifndef PROJECT_CONFIG_H_
6+
#define PROJECT_CONFIG_H_
7+
8+
#ifndef GETINFO_RELEASE_TYPE
9+
//#define GETINFO_RELEASE_TYPE GETINFO_FW_RELEASE_TYPE_PUBLIC
10+
#define GETINFO_RELEASE_TYPE GETINFO_FW_RELEASE_TYPE_LOCAL
11+
#endif
12+
13+
#endif /* PROJECT_CONFIG_H_ */

tmc/TMCL.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include "TMCL.h"
1111

12+
#include "ProjectConfig.h"
1213
#include "GitInfo.h"
1314

1415
#include "BoardAssignment.h"
@@ -964,7 +965,7 @@ static void handleGetInfo(void)
964965
break;
965966

966967
case 3: // FWReleaseType
967-
ActualReply.Value.Int32 = GETINFO_FW_RELEASE_TYPE_PUBLIC; // Public
968+
ActualReply.Value.Int32 = GETINFO_RELEASE_TYPE;
968969
break;
969970

970971
case 20: // APIndexBitWidth

tmc/TMCL.h

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
#define GETINFO_FW_RELEASE_TYPE_PUBLIC 0
118118
#define GETINFO_FW_RELEASE_TYPE_INTERNAL 1
119119
#define GETINFO_FW_RELEASE_TYPE_CUSTOM 2
120+
#define GETINFO_FW_RELEASE_TYPE_LOCAL 3
120121

121122
#if defined(Landungsbruecke) || defined(LandungsbrueckeSmall) || defined(LandungsbrueckeV3)
122123
struct BootloaderConfig {

0 commit comments

Comments
 (0)