... | ... | @@ -29,6 +29,7 @@ const uint16_t FLOCKLAB_NODE_ID = 0xbeef; |
|
|
// somewhere in the code (note: conversion to volatile forces the compiler to keep the constant in the symbol table)
|
|
|
node_id = *(volatile uint16_t*)&FLOCKLAB_NODE_ID;
|
|
|
```
|
|
|
Alternatively, you can place the constant `FLOCKLAB_NODE_ID` into a separate C file and declare it as `extern` in your code.
|
|
|
|
|
|
<br />
|
|
|
|
... | ... | |