Skip to content

Commit 56a7ae8

Browse files
MarkusADme-no-dev
andauthored
Trailing spaces (#3738)
* fix typo in WiFiMulti * clean up trailing spaces * clean up script file used in cleaning Co-authored-by: Me No Dev <me-no-dev@users.noreply.github.com>
1 parent e4b008e commit 56a7ae8

File tree

24 files changed

+96
-96
lines changed

24 files changed

+96
-96
lines changed

cores/esp32/WMath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ long random(long howbig)
4444
uint32_t t = -howbig;
4545
if (t >= howbig) {
4646
t -= howbig;
47-
if (t >= howbig)
47+
if (t >= howbig)
4848
t %= howbig;
4949
}
5050
while (l < t) {

cores/esp32/wiring_shift.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
Boston, MA 02111-1307 USA
1717
$Id: wiring.c 248 2007-02-03 15:36:30Z mellis $
1818
*/
19-
19+
2020
#include "esp32-hal.h"
2121
#include "wiring_private.h"
2222

libraries/ArduinoOTA/examples/OTAWebUpdater/OTAWebUpdater.ino

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ WebServer server(80);
1414
* Login page
1515
*/
1616

17-
const char* loginIndex =
17+
const char* loginIndex =
1818
"<form name='loginForm'>"
1919
"<table width='20%' bgcolor='A09F9F' align='center'>"
2020
"<tr>"
@@ -55,12 +55,12 @@ const char* loginIndex =
5555
"}"
5656
"}"
5757
"</script>";
58-
58+
5959
/*
6060
* Server Index Page
6161
*/
62-
63-
const char* serverIndex =
62+
63+
const char* serverIndex =
6464
"<script src='https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js'></script>"
6565
"<form method='POST' action='#' enctype='multipart/form-data' id='upload_form'>"
6666
"<input type='file' name='update'>"
@@ -89,7 +89,7 @@ const char* serverIndex =
8989
"return xhr;"
9090
"},"
9191
"success:function(d, s) {"
92-
"console.log('success!')"
92+
"console.log('success!')"
9393
"},"
9494
"error: function (a, b, c) {"
9595
"}"

tools/sdk/include/esp32/xtensa/cacheasm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
* if all sets affected by cainst,
149149
* or 1 if only one set (or not all sets) of the cache
150150
* is affected by cainst (eg. DIWB or DIWBI [not yet ISA defined]).
151-
* aa, ab unique address registers (temporaries).
151+
* aa, ab unique address registers (temporaries).
152152
* awb set to other than a0 if wb type of instruction
153153
* loopokay 1 allows use of zero-overhead loops, 0 does not
154154
* immrange range (max value) of cainst's immediate offset parameter, in bytes
@@ -904,7 +904,7 @@
904904
movi \aa, XCHAL_DCACHE_WAYS
905905
.Ldcgw:
906906
#else
907-
// All ways are always enabled
907+
// All ways are always enabled
908908
movi \aa, XCHAL_DCACHE_WAYS
909909
#endif
910910
#else

tools/sdk/include/esp32/xtensa/coreasm.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,7 @@
558558
* macro implements version of beqi for arbitrary 32-bit immediate value
559559
*
560560
* beqi32 ax, ay, imm32, label
561-
*
561+
*
562562
* Compares value in register ax with imm32 value and jumps to label if
563563
* equal. Clobbers register ay if needed
564564
*
@@ -573,7 +573,7 @@
573573
.ifeq (\imm) // 0 ?
574574
beqz \ax, \label
575575
.else
576-
// We could also handle immediates 10,12,16,32,64,128,256
576+
// We could also handle immediates 10,12,16,32,64,128,256
577577
// but it would be a long macro...
578578
movi \ay, \imm
579579
beq \ax, \ay, \label
@@ -639,9 +639,9 @@
639639

640640
/*----------------------------------------------------------------------
641641
* addx2
642-
*
642+
*
643643
* implements addx2 on machines that do not have it configured
644-
*
644+
*
645645
*/
646646

647647
#if !XCHAL_HAVE_ADDX
@@ -666,7 +666,7 @@
666666

667667
/*----------------------------------------------------------------------
668668
* addx4
669-
*
669+
*
670670
* implements addx4 on machines that do not have it configured
671671
*
672672
*/
@@ -696,9 +696,9 @@
696696

697697
/*----------------------------------------------------------------------
698698
* addx8
699-
*
699+
*
700700
* implements addx8 on machines that do not have it configured
701-
*
701+
*
702702
*/
703703

704704
#if !XCHAL_HAVE_ADDX
@@ -731,7 +731,7 @@
731731

732732
/*----------------------------------------------------------------------
733733
* rfe_rfue
734-
*
734+
*
735735
* Maps to RFUE on XEA1, and RFE on XEA2. No mapping on XEAX.
736736
*/
737737

@@ -744,11 +744,11 @@
744744
rfe
745745
.endm
746746
#endif
747-
747+
748748

749749
/*----------------------------------------------------------------------
750750
* abi_entry
751-
*
751+
*
752752
* Generate proper function entry sequence for the current ABI
753753
* (windowed or call0). Takes care of allocating stack space (up to 1kB)
754754
* and saving the return PC, if necessary. The corresponding abi_return
@@ -882,7 +882,7 @@
882882

883883
/*----------------------------------------------------------------------
884884
* abi_return
885-
*
885+
*
886886
* Generate proper function exit sequence for the current ABI
887887
* (windowed or call0). Takes care of freeing stack space and
888888
* restoring the return PC, if necessary.

tools/sdk/include/esp32/xtensa/xt_perf_consts.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define XTPERF_CNT_DCACHE_MISSES 0x8006 /* DCache misses penalty in cycles */
3535

3636
#define XTPERF_CNT_CYCLES 0 /* Count cycles */
37-
#define XTPERF_CNT_OVERFLOW 1 /* Overflow of counter n-1 (assuming this is counter n) */
37+
#define XTPERF_CNT_OVERFLOW 1 /* Overflow of counter n-1 (assuming this is counter n) */
3838
#define XTPERF_CNT_INSN 2 /* Successfully completed instructions */
3939
#define XTPERF_CNT_D_STALL 3 /* Data-related GlobalStall cycles */
4040
#define XTPERF_CNT_I_STALL 4 /* Instruction-related and other GlobalStall cycles */
@@ -67,18 +67,18 @@
6767
#define XTPERF_MASK_COMMITTED_INSN 0x0001
6868

6969
/* XTPERF_CNT_BRANCH_PENALTY selector mask */
70-
70+
7171
#define XTPERF_MASK_BRANCH_PENALTY 0x0001
7272

7373
/* XTPERF_CNT_PIPELINE_INTERLOCKS selector mask */
7474

7575
#define XTPERF_MASK_PIPELINE_INTERLOCKS 0x0001
7676

77-
/* XTPERF_CNT_ICACHE_MISSES selector mask */
77+
/* XTPERF_CNT_ICACHE_MISSES selector mask */
7878

7979
#define XTPERF_MASK_ICACHE_MISSES 0x0001
8080

81-
/* XTPERF_CNT_DCACHE_MISSES selector mask */
81+
/* XTPERF_CNT_DCACHE_MISSES selector mask */
8282

8383
#define XTPERF_MASK_DCACHE_MISSES 0x0001
8484

tools/sdk/include/esp32/xtensa/xtensa-libdb-macros.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,6 @@ extern "C" {
156156
#ifdef __cplusplus
157157
}
158158
#endif
159-
159+
160160
#endif /* __H_LIBDB_MACROS */
161161

tools/sdk/include/freemodbus/mb.h

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
33
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
44
* All rights reserved.
@@ -71,7 +71,7 @@ PR_BEGIN_EXTERN_C
7171
/*! \ingroup modbus
7272
* \brief Use the default Modbus TCP port (502)
7373
*/
74-
#define MB_TCP_PORT_USE_DEFAULT 0
74+
#define MB_TCP_PORT_USE_DEFAULT 0
7575

7676
/* ----------------------- Type definitions ---------------------------------*/
7777

@@ -97,7 +97,7 @@ PR_BEGIN_EXTERN_C
9797
* registers should be updated and reading means that the modbus protocol
9898
* stack needs to know the current register values.
9999
*
100-
* \see eMBRegHoldingCB( ), eMBRegCoilsCB( ), eMBRegDiscreteCB( ) and
100+
* \see eMBRegHoldingCB( ), eMBRegCoilsCB( ), eMBRegDiscreteCB( ) and
101101
* eMBRegInputCB( ).
102102
*/
103103
typedef enum
@@ -142,7 +142,7 @@ typedef enum
142142
*
143143
* \return If no error occurs the function returns eMBErrorCode::MB_ENOERR.
144144
* The protocol is then in the disabled state and ready for activation
145-
* by calling eMBEnable( ). Otherwise one of the following error codes
145+
* by calling eMBEnable( ). Otherwise one of the following error codes
146146
* is returned:
147147
* - eMBErrorCode::MB_EINVAL If the slave address was not valid. Valid
148148
* slave addresses are in the range 1 - 247.
@@ -171,10 +171,10 @@ eMBErrorCode eMBTCPInit( USHORT usTCPPort );
171171
* \brief Release resources used by the protocol stack.
172172
*
173173
* This function disables the Modbus protocol stack and release all
174-
* hardware resources. It must only be called when the protocol stack
175-
* is disabled.
174+
* hardware resources. It must only be called when the protocol stack
175+
* is disabled.
176176
*
177-
* \note Note all ports implement this function. A port which wants to
177+
* \note Note all ports implement this function. A port which wants to
178178
* get an callback must define the macro MB_PORT_HAS_CLOSE to 1.
179179
*
180180
* \return If the resources where released it return eMBErrorCode::MB_ENOERR.
@@ -189,8 +189,8 @@ eMBErrorCode eMBClose( void );
189189
* This function enables processing of Modbus frames. Enabling the protocol
190190
* stack is only possible if it is in the disabled state.
191191
*
192-
* \return If the protocol stack is now in the state enabled it returns
193-
* eMBErrorCode::MB_ENOERR. If it was not in the disabled state it
192+
* \return If the protocol stack is now in the state enabled it returns
193+
* eMBErrorCode::MB_ENOERR. If it was not in the disabled state it
194194
* return eMBErrorCode::MB_EILLSTATE.
195195
*/
196196
eMBErrorCode eMBEnable( void );
@@ -200,7 +200,7 @@ eMBErrorCode eMBEnable( void );
200200
*
201201
* This function disables processing of Modbus frames.
202202
*
203-
* \return If the protocol stack has been disabled it returns
203+
* \return If the protocol stack has been disabled it returns
204204
* eMBErrorCode::MB_ENOERR. If it was not in the enabled state it returns
205205
* eMBErrorCode::MB_EILLSTATE.
206206
*/
@@ -212,10 +212,10 @@ eMBErrorCode eMBDisable( void );
212212
* This function must be called periodically. The timer interval required
213213
* is given by the application dependent Modbus slave timeout. Internally the
214214
* function calls xMBPortEventGet() and waits for an event from the receiver or
215-
* transmitter state machines.
215+
* transmitter state machines.
216216
*
217217
* \return If the protocol stack is not in the enabled state the function
218-
* returns eMBErrorCode::MB_EILLSTATE. Otherwise it returns
218+
* returns eMBErrorCode::MB_EILLSTATE. Otherwise it returns
219219
* eMBErrorCode::MB_ENOERR.
220220
*/
221221
eMBErrorCode eMBPoll( void );
@@ -249,7 +249,7 @@ eMBErrorCode eMBSetSlaveID( UCHAR ucSlaveID, BOOL xIsRunning,
249249
* The callback handler supplied is responsible for interpreting the Modbus PDU and
250250
* the creation of an appropriate response. In case of an error it should return
251251
* one of the possible Modbus exceptions which results in a Modbus exception frame
252-
* sent by the protocol stack.
252+
* sent by the protocol stack.
253253
*
254254
* \param ucFunctionCode The Modbus function code for which this handler should
255255
* be registers. Valid function codes are in the range 1 to 127.
@@ -262,7 +262,7 @@ eMBErrorCode eMBSetSlaveID( UCHAR ucSlaveID, BOOL xIsRunning,
262262
* case the values in mbconfig.h should be adjusted. If the argument was not
263263
* valid it returns eMBErrorCode::MB_EINVAL.
264264
*/
265-
eMBErrorCode eMBRegisterCB( UCHAR ucFunctionCode,
265+
eMBErrorCode eMBRegisterCB( UCHAR ucFunctionCode,
266266
pxMBFunctionHandler pxHandler );
267267

268268
/* ----------------------- Callback -----------------------------------------*/
@@ -300,7 +300,7 @@ eMBErrorCode eMBRegisterCB( UCHAR ucFunctionCode,
300300
* - eMBErrorCode::MB_ENOERR If no error occurred. In this case a normal
301301
* Modbus response is sent.
302302
* - eMBErrorCode::MB_ENOREG If the application can not supply values
303-
* for registers within this range. In this case a
303+
* for registers within this range. In this case a
304304
* <b>ILLEGAL DATA ADDRESS</b> exception frame is sent as a response.
305305
* - eMBErrorCode::MB_ETIMEDOUT If the requested register block is
306306
* currently not available and the application dependent response
@@ -324,18 +324,18 @@ eMBErrorCode eMBRegInputCB( UCHAR * pucRegBuffer, USHORT usAddress,
324324
* this buffer.
325325
* \param usAddress The starting address of the register.
326326
* \param usNRegs Number of registers to read or write.
327-
* \param eMode If eMBRegisterMode::MB_REG_WRITE the application register
327+
* \param eMode If eMBRegisterMode::MB_REG_WRITE the application register
328328
* values should be updated from the values in the buffer. For example
329-
* this would be the case when the Modbus master has issued an
329+
* this would be the case when the Modbus master has issued an
330330
* <b>WRITE SINGLE REGISTER</b> command.
331-
* If the value eMBRegisterMode::MB_REG_READ the application should copy
331+
* If the value eMBRegisterMode::MB_REG_READ the application should copy
332332
* the current values into the buffer \c pucRegBuffer.
333333
*
334334
* \return The function must return one of the following error codes:
335335
* - eMBErrorCode::MB_ENOERR If no error occurred. In this case a normal
336336
* Modbus response is sent.
337337
* - eMBErrorCode::MB_ENOREG If the application can not supply values
338-
* for registers within this range. In this case a
338+
* for registers within this range. In this case a
339339
* <b>ILLEGAL DATA ADDRESS</b> exception frame is sent as a response.
340340
* - eMBErrorCode::MB_ETIMEDOUT If the requested register block is
341341
* currently not available and the application dependent response
@@ -370,7 +370,7 @@ eMBErrorCode eMBRegHoldingCB( UCHAR * pucRegBuffer, USHORT usAddress,
370370
* - eMBErrorCode::MB_ENOERR If no error occurred. In this case a normal
371371
* Modbus response is sent.
372372
* - eMBErrorCode::MB_ENOREG If the application does not map an coils
373-
* within the requested address range. In this case a
373+
* within the requested address range. In this case a
374374
* <b>ILLEGAL DATA ADDRESS</b> is sent as a response.
375375
* - eMBErrorCode::MB_ETIMEDOUT If the requested register block is
376376
* currently not available and the application dependent response
@@ -399,7 +399,7 @@ eMBErrorCode eMBRegCoilsCB( UCHAR * pucRegBuffer, USHORT usAddress,
399399
* - eMBErrorCode::MB_ENOERR If no error occurred. In this case a normal
400400
* Modbus response is sent.
401401
* - eMBErrorCode::MB_ENOREG If no such discrete inputs exists.
402-
* In this case a <b>ILLEGAL DATA ADDRESS</b> exception frame is sent
402+
* In this case a <b>ILLEGAL DATA ADDRESS</b> exception frame is sent
403403
* as a response.
404404
* - eMBErrorCode::MB_ETIMEDOUT If the requested register block is
405405
* currently not available and the application dependent response

tools/sdk/include/freemodbus/mbconfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
33
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
44
* All rights reserved.

tools/sdk/include/freemodbus/mbframe.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
/*
22
* FreeModbus Libary: A portable Modbus implementation for Modbus ASCII/RTU.
33
* Copyright (c) 2006 Christian Walter <wolti@sil.at>
44
* All rights reserved.

0 commit comments

Comments
 (0)