kasbert / epsolar-tracer

Tools for EPsolar Tracer BN solar charge controller
Apache License 2.0
120 stars 76 forks source link

xr_usb: fix some whitespace errors #38

Closed SvenRoederer closed 3 years ago

SvenRoederer commented 3 years ago

building for OpenWrt gave some compiler warnings

xr_usb_serial_common.c:878:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
                 if (get_user(val, (int __user *)(arg + 2 * sizeof(int))))
                 ^~
xr_usb_serial_common.c:881:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    if (channel == -1)
    ^~

Unified usage of tabs and spaces, which should make the compiler happy

SvenRoederer commented 3 years ago

this change might conflict with the change mentioned in #39