diff --git a/examples/c++/hm11.cxx b/examples/c++/hm11.cxx index 61b25e5b..faf80ee6 100644 --- a/examples/c++/hm11.cxx +++ b/examples/c++/hm11.cxx @@ -40,7 +40,7 @@ void printUsage(char *progname) << endl; cout << "sent to the module and the response is printed out." << endl; cout << endl; - cout << "If no argument is used, then the address and PIN of the module" + cout << "If no argument is used, then the address and PIN of the module" << endl; cout << "are queried and the results printed out." << endl; cout << endl; @@ -52,12 +52,12 @@ void sendCommand(upm::HM11* ble, char *cmd) { char buffer[BUFSIZ]; ble->writeData(cmd, strlen(cmd)); - + // wait up to 1 second if (ble->dataAvailable(1000)) { memset(buffer, 0, BUFSIZ); - + ble->readData(buffer, BUFSIZ - 1); cout << "Returned: " << buffer << endl; } @@ -71,7 +71,6 @@ void sendCommand(upm::HM11* ble, char *cmd) int main (int argc, char **argv) { //! [Interesting] - char buffer[BUFSIZ]; // Instantiate a HM11 BLE Module on UART 0 upm::HM11* ble = new upm::HM11(0); diff --git a/examples/c++/lol.cxx b/examples/c++/lol.cxx index 9cf71bd7..f58ae5ac 100644 --- a/examples/c++/lol.cxx +++ b/examples/c++/lol.cxx @@ -48,7 +48,6 @@ main(int argc, char **argv) sensor = new upm::LoL(); signal(SIGINT, sig_handler); - unsigned char *buffer; //buffer = sensor->getFramebuffer(); int x = 0, y = 0; while (!is_running) { diff --git a/examples/c++/nrf8001-helloworld.cxx b/examples/c++/nrf8001-helloworld.cxx index 39e9b792..1c63002b 100644 --- a/examples/c++/nrf8001-helloworld.cxx +++ b/examples/c++/nrf8001-helloworld.cxx @@ -80,7 +80,6 @@ Used to test the UART TX characteristic notification static uart_over_ble_t uart_over_ble; static uint8_t uart_buffer[20]; static uint8_t uart_buffer_len = 0; -static uint8_t dummychar = 0; void sig_handler(int signo) diff --git a/examples/c++/smartdrive.cxx b/examples/c++/smartdrive.cxx index ab943fd6..9b2c2a86 100644 --- a/examples/c++/smartdrive.cxx +++ b/examples/c++/smartdrive.cxx @@ -44,8 +44,6 @@ sig_handler(int signo) int main(int argc, char **argv) { - float voltage = 0; - std::cout << "SmartDrive demo is starting. Please make sure drive is connected to board" << std::endl; sleep(2); //Wait for 2 seconds in case you want to fix your h/w setup diff --git a/examples/c++/tsl2561.cxx b/examples/c++/tsl2561.cxx index 87f83393..d50c6dbf 100644 --- a/examples/c++/tsl2561.cxx +++ b/examples/c++/tsl2561.cxx @@ -30,7 +30,6 @@ int main (int argc, char **argv) { - mraa_result_t error = MRAA_SUCCESS; upm::TSL2561 *sensor = NULL; int loopCount = 100;