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