Private
Public Access
2
0

clang-format: run clang-format on C/C++ code

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-03-23 14:39:12 +00:00
parent 2174ee1673
commit ffcf3d7d07
46 changed files with 1630 additions and 1455 deletions

View File

@@ -25,7 +25,8 @@
//! [Interesting]
#include "mraa.hpp"
int main ()
int
main()
{
uint16_t adc_value;
float adc_value_float;
@@ -36,7 +37,7 @@ int main ()
return MRAA_ERROR_UNSPECIFIED;
}
for(;;) {
for (;;) {
adc_value = a0->read();
adc_value_float = a0->readFloat();
fprintf(stdout, "ADC A0 read %X - %d\n", adc_value, adc_value);