Isr-pin6.cpp: Add example for c++ isr
[contrib/mraa.git] / examples / c++ / Pwm3-cycle.cpp
index 2625871..76f2328 100644 (file)
@@ -38,10 +38,11 @@ sig_handler(int signo)
     }
 }
 
-int main ()
+int
+main()
 {
     signal(SIGINT, sig_handler);
-//! [Interesting]
+    //! [Interesting]
     mraa::Pwm* pwm;
 
     pwm = new mraa::Pwm(3);
@@ -61,7 +62,7 @@ int main ()
         }
     }
     delete pwm;
-//! [Interesting]
+    //! [Interesting]
 
     return MRAA_SUCCESS;
 }