Skip to content

Commit 161d992

Browse files
committed
cpp guard settings.h
1 parent 6a6b32f commit 161d992

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

source/Core/Inc/Settings.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
#define CORE_SETTINGS_H_
1414
#include <stdbool.h>
1515
#include <stdint.h>
16+
#ifdef __cplusplus
1617
#ifdef MODEL_Pinecilv2
1718
// Required settings reset for PR #1916
1819
#define SETTINGSVERSION (0x55AB) // This number is frozen, do not edit
@@ -89,7 +90,6 @@ typedef struct {
8990
const uint16_t defaultValue; // Default vaue after reset
9091
} SettingConstants;
9192
extern const SettingConstants settingsConstants[(int)SettingsOptions::SettingsOptionsLength];
92-
9393
/*
9494
* This struct must be a multiple of 2 bytes as it is saved / restored from
9595
* flash in uint16_t chunks
@@ -200,4 +200,6 @@ const char *lookupTipName(); // Get the name string for the current soldering ti
200200
#ifdef BLE_ENABLED
201201
void setBluetoothLE(void);
202202
#endif /* BLE_ENABLED */
203+
#endif // c++ guard
204+
203205
#endif /* SETTINGS_H_ */

0 commit comments

Comments
 (0)