aboutsummaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-02-17 08:28:14 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2015-02-17 08:28:14 +0100
commit076fbdda4477b87deb322e43925e010d24d9fa5d (patch)
tree93e9a759b95ca3999c82905a5db9cf0e54ac1373 /main.cpp
parent360fd8567545253f680ea544ce7313ab1ef43d14 (diff)
downloadble-toys-076fbdda4477b87deb322e43925e010d24d9fa5d.tar.gz
ble-toys-076fbdda4477b87deb322e43925e010d24d9fa5d.tar.bz2
ble-toys-076fbdda4477b87deb322e43925e010d24d9fa5d.tar.xz
ble-toys-076fbdda4477b87deb322e43925e010d24d9fa5d.zip
o More tests, more passing tests.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/main.cpp b/main.cpp
index 0ff7eed..757db28 100644
--- a/main.cpp
+++ b/main.cpp
@@ -32,7 +32,7 @@ int main(int argc, char *argv[]) {
BluetoothAdapter *adapter = nullptr;
int e;
- try {
+// try {
targetMac = Mac::parseMac(argv[1]);
adapter = trygvis::getAdapter(0);
@@ -44,13 +44,13 @@ int main(int argc, char *argv[]) {
// adapter->runScan(scan_callback);
e = EXIT_SUCCESS;
- } catch (std::runtime_error ex) {
- W << "std::runtime_error: " << ex.what();
- e = EXIT_FAILURE;
- } catch (std::exception ex) {
- W << "std::exception: " << ex.what();
- e = EXIT_FAILURE;
- }
+// } catch (std::runtime_error ex) {
+// W << "std::runtime_error: " << ex.what();
+// e = EXIT_FAILURE;
+// } catch (std::exception ex) {
+// W << "std::exception: " << ex.what();
+// e = EXIT_FAILURE;
+// }
if (adapter != nullptr) {
delete adapter;