mirror of
				https://github.com/eclipse/upm.git
				synced 2025-10-30 22:54:44 +03:00 
			
		
		
		
	Wunused-variable: fix several warnings
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
		| @@ -71,7 +71,6 @@ void sendCommand(upm::HM11* ble, char *cmd) | |||||||
| int main (int argc, char **argv) | int main (int argc, char **argv) | ||||||
| { | { | ||||||
| //! [Interesting] | //! [Interesting] | ||||||
|   char buffer[BUFSIZ]; |  | ||||||
|   // Instantiate a HM11 BLE Module on UART 0 |   // Instantiate a HM11 BLE Module on UART 0 | ||||||
|  |  | ||||||
|   upm::HM11* ble = new upm::HM11(0); |   upm::HM11* ble = new upm::HM11(0); | ||||||
|   | |||||||
| @@ -48,7 +48,6 @@ main(int argc, char **argv) | |||||||
|     sensor = new upm::LoL(); |     sensor = new upm::LoL(); | ||||||
|     signal(SIGINT, sig_handler); |     signal(SIGINT, sig_handler); | ||||||
|  |  | ||||||
|     unsigned char *buffer; |  | ||||||
|     //buffer = sensor->getFramebuffer(); |     //buffer = sensor->getFramebuffer(); | ||||||
|     int x = 0, y = 0; |     int x = 0, y = 0; | ||||||
|     while (!is_running) { |     while (!is_running) { | ||||||
|   | |||||||
| @@ -80,7 +80,6 @@ Used to test the UART TX characteristic notification | |||||||
| static uart_over_ble_t uart_over_ble; | static uart_over_ble_t uart_over_ble; | ||||||
| static uint8_t         uart_buffer[20]; | static uint8_t         uart_buffer[20]; | ||||||
| static uint8_t         uart_buffer_len = 0; | static uint8_t         uart_buffer_len = 0; | ||||||
| static uint8_t         dummychar = 0; |  | ||||||
|  |  | ||||||
| void | void | ||||||
| sig_handler(int signo) | sig_handler(int signo) | ||||||
|   | |||||||
| @@ -44,8 +44,6 @@ sig_handler(int signo) | |||||||
| int | int | ||||||
| main(int argc, char **argv) | main(int argc, char **argv) | ||||||
| { | { | ||||||
|     float voltage = 0; |  | ||||||
|  |  | ||||||
|     std::cout << "SmartDrive demo is starting. Please make sure drive is connected to board" << std::endl; |     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 |     sleep(2); //Wait for 2 seconds in case you want to fix your h/w setup | ||||||
|      |      | ||||||
|   | |||||||
| @@ -30,7 +30,6 @@ | |||||||
|  |  | ||||||
| int main (int argc, char **argv) | int main (int argc, char **argv) | ||||||
| { | { | ||||||
|     mraa_result_t error = MRAA_SUCCESS; |  | ||||||
|     upm::TSL2561 *sensor = NULL; |     upm::TSL2561 *sensor = NULL; | ||||||
|     int loopCount = 100; |     int loopCount = 100; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jon Trulson
					Jon Trulson