|
|
@@ -90,19 +90,18 @@ void nbus_slave_unicastToModuleGet(nBus_TypeDef *nbus)
|
|
|
nbus->tx_buffer[6] = MODULE_TYPE[2];
|
|
|
nbus->tx_length += 3;
|
|
|
break;
|
|
|
- case INFO_MODULE_UUID:
|
|
|
- {
|
|
|
- // Reference manual: Unique device ID registers
|
|
|
- #if defined(STM32)
|
|
|
- uint32_t(*unique_id_3) = (uint32_t *)(0x1FF80064); // BASE address + 0x14 0ffset
|
|
|
- #elif defined(ESP32)
|
|
|
- uint32_t unique_id_3[3] = {1, 2, 3};
|
|
|
- #endif
|
|
|
-
|
|
|
- *(nbus->tx_buffer) = (uint32_t)unique_id_3;
|
|
|
- nbus->tx_length += 4;
|
|
|
- }
|
|
|
- break;
|
|
|
+ case INFO_MODULE_UUID: {
|
|
|
+// Reference manual: Unique device ID registers
|
|
|
+#if defined(STM32)
|
|
|
+ uint32_t(*unique_id_3) = (uint32_t *)(0x1FF80064); // BASE address + 0x14 0ffset
|
|
|
+#elif defined(ESP32)
|
|
|
+ uint32_t unique_id_3[3] = {1, 2, 3};
|
|
|
+#endif
|
|
|
+
|
|
|
+ *(nbus->tx_buffer) = (uint32_t)unique_id_3;
|
|
|
+ nbus->tx_length += 4;
|
|
|
+ }
|
|
|
+ break;
|
|
|
case INFO_MODULE_FW:
|
|
|
nbus->tx_buffer[4] = VERSION_FW[0];
|
|
|
nbus->tx_buffer[5] = '.';
|