1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 17:55:30 +03:00

format code properly

match the comment from pullrequest about spacing
remains : some hand alignment for comment and wrong /** */ usage.
This commit is contained in:
treymarc 2014-05-08 00:36:19 +00:00
parent ac4835ef67
commit 1f293795e7
26 changed files with 99 additions and 109 deletions

View file

@ -297,7 +297,7 @@ static float _atof(const char *p)
float sign, value, scale;
// Skip leading white space, if any.
while (white_space(*p) ) {
while (white_space(*p)) {
p += 1;
}
@ -352,7 +352,7 @@ static float _atof(const char *p)
expon = expon * 10 + (*p - '0');
p += 1;
}
if (expon > 308)
if (expon > 308)
expon = 308;
// Calculate scaling factor.
@ -381,7 +381,7 @@ static char *ftoa(float x, char *floatString)
else
x -= 0.0005f;
value = (int32_t) (x * 1000.0f); // Convert float * 1000 to an integer
value = (int32_t)(x * 1000.0f); // Convert float * 1000 to an integer
itoa(abs(value), intString1, 10); // Create string from abs of integer value