Skip to content

Commit

Permalink
Remove trailing whitespaces
Browse files Browse the repository at this point in the history
Signed-off-by: Kostiantyn Kostiuk <[email protected]>
  • Loading branch information
kostyanf14 committed Jun 30, 2024
1 parent 87bd7db commit 9ae0bd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inverter.conf
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ amperage_factor=1.0
# reading compared to measurement tools. Normally this will remain '1'
watt_factor=1.01

# Depending on the protocol version used and your device,
# Depending on the protocol version used and your device,
# you might need to change the following parameters

#### For Axpert VM3 inverter like, use those values ###
# This allows you to modify the buffersize for the qpiri command
# This allows you to modify the buffersize for the qpiri command
qpiri=98

# This allows you to modify the buffersize for the qpiws command
Expand Down
4 changes: 2 additions & 2 deletions inverter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@ bool cInverter::query(const char *cmd) {
cfsetspeed(&settings, baud); // baud rate
settings.c_cflag &= ~PARENB; // no parity
settings.c_cflag &= ~CSTOPB; // 1 stop bit
settings.c_cflag &= ~CSIZE; // Clear all bits that set the data size
settings.c_cflag &= ~CSIZE; // Clear all bits that set the data size
settings.c_cflag |= CS8 | CLOCAL; // 8 bits

settings.c_oflag &= ~OPOST; // Prevent special interpretation of output bytes (e.g. newline chars)
settings.c_lflag &= ~ICANON;
settings.c_lflag &= ~ICANON;
settings.c_iflag &= ~(IXON | IXOFF | IXANY); // Turn off s/w flow ctrl
settings.c_lflag &= ~ISIG;
settings.c_oflag &= ~ONLCR; // Prevent conversion of newline to carriage return/line feed
Expand Down

0 comments on commit 9ae0bd8

Please sign in to comment.