mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
remove mentions of discontinued scripts
This commit is contained in:
@@ -104,7 +104,7 @@ print("# Entity/Register Mapping")
|
|||||||
print()
|
print()
|
||||||
print("!!! note")
|
print("!!! note")
|
||||||
print()
|
print()
|
||||||
print(" This file has been auto-generated. Do not edit.")
|
print(" This file has been auto-generated. Do not modify.")
|
||||||
print()
|
print()
|
||||||
|
|
||||||
for device_type, devices in grouped_by(entities, device_type_key):
|
for device_type, devices in grouped_by(entities, device_type_key):
|
||||||
|
|||||||
@@ -2,9 +2,7 @@
|
|||||||
|
|
||||||
#
|
#
|
||||||
# Builds the dump CSV files, modbus headers and documentation.
|
# Builds the dump CSV files, modbus headers and documentation.
|
||||||
# To be run before a release with
|
# Called by /scripts/generate_csv_and_headers.sh
|
||||||
# sh ./scripts/generate_csv_and_headers.sh
|
|
||||||
#
|
|
||||||
|
|
||||||
# build dummy modbus_entity_parameters.hpp so it compiles
|
# build dummy modbus_entity_parameters.hpp so it compiles
|
||||||
cat >./src/modbus_entity_parameters.hpp <<EOL
|
cat >./src/modbus_entity_parameters.hpp <<EOL
|
||||||
@@ -12,7 +10,7 @@ cat >./src/modbus_entity_parameters.hpp <<EOL
|
|||||||
#include "emsdevice.h"
|
#include "emsdevice.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is auto-generated by the update_modbus_registers.sh script. Do not modify.
|
* This file is auto-generated. Do not modify.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
|||||||
@@ -1,13 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Update modbus parameters from entity definitions.
|
# Update modbus parameters from entity definitions.
|
||||||
# This script generates c++ code for the modbus parameter definitions.
|
# This script generates c++ code for the modbus parameter definitions.
|
||||||
#
|
# Called by /scripts/generate_csv_and_headers.sh
|
||||||
# Usage:
|
|
||||||
# - first, dump all entities to csv by running 'sh ./scripts/dump_entities.sh'
|
|
||||||
# - then run 'cat ../dump_entities.csv | python3 update_modbus_registers.py > ../src/modbus_entity_parameters.hpp'
|
|
||||||
# from the "scripts" folder
|
|
||||||
# OR
|
|
||||||
# run `sh ./scripts/update_modbus_registers.sh` from the root folder
|
|
||||||
|
|
||||||
import fileinput
|
import fileinput
|
||||||
import csv
|
import csv
|
||||||
@@ -118,7 +112,7 @@ cpp_file_template = Template('''#include "modbus.h"
|
|||||||
#include "emsdevice.h"
|
#include "emsdevice.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is auto-generated by the update_modbus_registers.sh script. Do not modify.
|
* This file is auto-generated. Do not modify.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#include "emsdevice.h"
|
#include "emsdevice.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is auto-generated by the update_modbus_registers.sh script. Do not modify.
|
* This file is auto-generated. Do not modify.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// clang-format off
|
// clang-format off
|
||||||
|
|||||||
Reference in New Issue
Block a user