re-gen files

This commit is contained in:
proddy
2025-01-16 21:55:19 +01:00
parent e3d260429c
commit c732c96fc2
5 changed files with 449 additions and 924 deletions

View File

@@ -5,7 +5,7 @@
# Run as `sh scripts/generate_csv_and_headers.sh` from the root of the repository.
# create a dummy modbus_entity_parameters.hpp so the first pass compiles
cat >./src/modbus_entity_parameters.hpp <<EOL
cat >./src/core/modbus_entity_parameters.hpp <<EOL
#include "modbus.h"
#include "emsdevice.h"
@@ -38,9 +38,9 @@ make -s ARGS=-DEMSESP_STANDALONE
# Generate Modbus entity parameters
# One to build the modbus_entity_parameters.hpp header file
# And then run entity_dump test again to create the dump_entities.csv file with the correct modbus counts
rm -f ./src/modbus_entity_parameters.hpp
echo "test entity_dump" | ./emsesp | python3 ./scripts/strip_csv.py | python3 ./scripts/update_modbus_registers.py >./src/modbus_entity_parameters.hpp
ls -al ./src/modbus_entity_parameters.hpp
rm -f ./src/core/modbus_entity_parameters.hpp
echo "test entity_dump" | ./emsesp | python3 ./scripts/strip_csv.py | python3 ./scripts/update_modbus_registers.py >./src/core/modbus_entity_parameters.hpp
ls -al ./src/core/modbus_entity_parameters.hpp
# dump_entities.csv
make -s ARGS=-DEMSESP_STANDALONE