Added temperature and frequency data

This commit is contained in:
2024-03-12 09:41:56 +08:00
parent df2a6bf623
commit d8c939bb79
2 changed files with 17 additions and 11 deletions

2
main.h
View File

@@ -27,7 +27,7 @@ int Read_ID = 0x01;
unsigned char Tx_Buffer[8];
unsigned char Rx_Buffer[40];
unsigned char read_enable, receive_finished, reveive_number;
unsigned long Voltage_data, Current_data, Power_data, Energy_data, Pf_data, CO2_data;
unsigned long Voltage_data, Current_data, Power_data, Energy_data, Pf_data, CO2_data, Temperature_data, Hz_data;
unsigned int calccrc(unsigned char crcbuf, unsigned int crc);
unsigned int chkcrc(unsigned char *buf, unsigned char len);