|
|
@@ -248,15 +248,14 @@ void nbus_slave_unicastToSensorSet(nBus_TypeDef *nbus)
|
|
|
switch (nbus->rx_buffer[3])
|
|
|
{
|
|
|
case SENSOR_FORMAT: {
|
|
|
- nBus_sensorFormat_t format = nbus->interface->getSensorFormat(nbus->sensorInfo.address);
|
|
|
- nbus->tx_buffer[4] = nbus->sensorInfo.address;
|
|
|
- nbus->tx_buffer[5] = (format.sign << 7) | format.unit_multiplier;
|
|
|
- nbus->tx_buffer[6] = format.value_multiplier;
|
|
|
- nbus->tx_buffer[7] = (format.byte_length << 4) | format.samples;
|
|
|
- }
|
|
|
-
|
|
|
+ nBus_sensorFormat_t format = nbus->interface->getSensorFormat(nbus->sensorInfo.address);
|
|
|
+ nbus->tx_buffer[4] = nbus->sensorInfo.address;
|
|
|
+ nbus->tx_buffer[5] = (format.sign << 7) | format.unit_multiplier;
|
|
|
+ nbus->tx_buffer[6] = format.value_multiplier;
|
|
|
+ nbus->tx_buffer[7] = (format.byte_length << 4) | format.samples;
|
|
|
nbus->tx_length += 4;
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
break;
|
|
|
|