примерная примерная такая же по размеру структура данных модбас которая будет в итоге, все помещается
hardfault при отключении датчика
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
|
||||
#ifndef _MODBUS_DATA_H_
|
||||
#define _MODBUS_DATA_H_
|
||||
|
||||
|
||||
#include "stdint.h"
|
||||
#include "ds18b20_driver.h"
|
||||
//--------------DEFINES FOR REGISTERS---------------
|
||||
// DEFINES FOR ARRAYS
|
||||
/**
|
||||
@@ -37,8 +38,8 @@
|
||||
*/
|
||||
typedef struct //MB_DataInRegsTypeDef
|
||||
{
|
||||
uint16_t ForwardVoltage;
|
||||
uint16_t ReversePeakVoltage;
|
||||
uint16_t SensTemperature[DS18B20_DEVICE_AMOUNT];
|
||||
uint16_t Resolution;
|
||||
}MB_DataInRegsTypeDef;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user