Strip tabs and trailing white spaces, and fix end of files (#748)
* format: Strip trailing whitespaces
We want to get rid of trailing whitespaces completly as they make just git
noice. Much better to start using automated tools to get rid of them once and
not getting them back again. This way git history will be cleaner and review
easier.
Commit was generated with:
pre-commit run --all-files trailing-whitespace
* format: Files should have exactly one new line end of them
It is good practice that every file has one new line. It is not now days so
mandatory but it also is not nice if file has lot of newlines end of it. We will
use pre-commit which takes automatically care about this so let's fix all.
Commit was generated with:
pre-commit run --all-files end-of-file-fixer
* format: Convert tabs to spaces
Project mostly use spaces over tabs. When mixing tabs and spaces this usually
makes formatting issues and also when changing those in commits it will make lot
of git noise. We will force spaces most of the time and use pre-commit to fix.
Commit was generated with:
pre-commit run --all-files remove-tabs
---------
Co-authored-by: Kari Argillander <kari.argillander@fidelix.com>
This commit is contained in:
+49
-49
@@ -1,6 +1,6 @@
|
||||
Bacnet Server for Espressif ESP32
|
||||
Steve Karg Bacnet stack using PlatformIO open source ecosystem for IoT development on VSCode or Atom
|
||||
F. Chaxel 2017
|
||||
Steve Karg Bacnet stack using PlatformIO open source ecosystem for IoT development on VSCode or Atom
|
||||
F. Chaxel 2017
|
||||
|
||||
TODO list :
|
||||
|
||||
@@ -13,55 +13,55 @@ Goto lib/stack and copy the requested files from Steve code :
|
||||
all .h from include directory (not all required by it's simple)
|
||||
|
||||
these .c files from src or demo/handlers
|
||||
abort.c
|
||||
address.c
|
||||
apdu.c
|
||||
bacaddr.c
|
||||
bacapp.c
|
||||
bacdcode.c
|
||||
bacerror.c
|
||||
bacint.c
|
||||
bacreal.c
|
||||
bacstr.c
|
||||
bip.c
|
||||
bvlc.c
|
||||
cov.c
|
||||
datetime.c
|
||||
bacdevobjpropref.c
|
||||
dcc.c
|
||||
debug.c
|
||||
h_cov.c
|
||||
h_ucov.c
|
||||
h_npdu.c
|
||||
h_rp.c
|
||||
h_rpm.c
|
||||
h_whois.c
|
||||
h_wp.c
|
||||
iam.c
|
||||
hostnport.c
|
||||
lighting.c
|
||||
memcopy.c
|
||||
noserv.c
|
||||
npdu.c
|
||||
proplist.c
|
||||
reject.c
|
||||
rp.c
|
||||
rpm.c
|
||||
s_iam.c
|
||||
tsm.c
|
||||
whois.c
|
||||
wp.c
|
||||
abort.c
|
||||
address.c
|
||||
apdu.c
|
||||
bacaddr.c
|
||||
bacapp.c
|
||||
bacdcode.c
|
||||
bacerror.c
|
||||
bacint.c
|
||||
bacreal.c
|
||||
bacstr.c
|
||||
bip.c
|
||||
bvlc.c
|
||||
cov.c
|
||||
datetime.c
|
||||
bacdevobjpropref.c
|
||||
dcc.c
|
||||
debug.c
|
||||
h_cov.c
|
||||
h_ucov.c
|
||||
h_npdu.c
|
||||
h_rp.c
|
||||
h_rpm.c
|
||||
h_whois.c
|
||||
h_wp.c
|
||||
iam.c
|
||||
hostnport.c
|
||||
lighting.c
|
||||
memcopy.c
|
||||
noserv.c
|
||||
npdu.c
|
||||
proplist.c
|
||||
reject.c
|
||||
rp.c
|
||||
rpm.c
|
||||
s_iam.c
|
||||
tsm.c
|
||||
whois.c
|
||||
wp.c
|
||||
|
||||
Modify
|
||||
in config.h
|
||||
MAX_TSM_TRANSACTIONS 255, set the value to 10 for instances
|
||||
in main.c
|
||||
wifi_config to fit your wifi network
|
||||
BACNET_LED 5, set another IO number depending of your board
|
||||
in config.h
|
||||
MAX_TSM_TRANSACTIONS 255, set the value to 10 for instances
|
||||
in main.c
|
||||
wifi_config to fit your wifi network
|
||||
BACNET_LED 5, set another IO number depending of your board
|
||||
|
||||
A lot of Warning will be issued at compile time due to the redefinition of BIT macros.
|
||||
Could be removes by placing a #ifndef #BIT0 .. #endif arround the BIT macro in bits.h,
|
||||
Could be removes by placing a #ifndef #BIT0 .. #endif arround the BIT macro in bits.h,
|
||||
and moving to the top of include list
|
||||
#include "bacnet/datalink/datalink.h" in tsm.c, s_iam and in device.c
|
||||
#include "bacport.h" in bip.c and in bip.h (redondant include in bip.c)
|
||||
#include "bacnet/datalink/bvlc.h" in bvlc.c
|
||||
#include "bacnet/datalink/datalink.h" in tsm.c, s_iam and in device.c
|
||||
#include "bacport.h" in bip.c and in bip.h (redondant include in bip.c)
|
||||
#include "bacnet/datalink/bvlc.h" in bvlc.c
|
||||
|
||||
Reference in New Issue
Block a user