1 |
// serial1.cpp : Defines the entry point for the console application. |
// serial1.cpp : Defines the entry point for the console application. |
2 |
// |
// |
3 |
|
|
4 |
|
#ifdef _WINDOWS |
5 |
#include "stdafx.h" |
#include "stdafx.h" |
6 |
|
|
7 |
#include "serial1.h" |
#include "serial1.h" |
8 |
|
#endif |
9 |
|
|
10 |
|
|
11 |
#ifdef _DEBUG |
#ifdef _DEBUG |
12 |
#define new DEBUG_NEW |
#define new DEBUG_NEW |
13 |
#endif |
#endif |
18 |
#include <iomanip> |
#include <iomanip> |
19 |
#include <exception> |
#include <exception> |
20 |
|
|
|
#include <conio.h> |
|
21 |
|
|
22 |
void pause() |
void my_pause() |
23 |
{ |
{ |
24 |
char d[1]; |
char d[1]; |
25 |
std::cout << "Press enter to continue" << std::endl; |
std::cout << "Press enter to continue" << std::endl; |
78 |
//std::cout << serial.readTarget(2) << std::endl; |
//std::cout << serial.readTarget(2) << std::endl; |
79 |
|
|
80 |
|
|
81 |
pause(); |
my_pause(); |
82 |
return 0; |
return 0; |
83 |
} |
} |
84 |
|
|