Skip to content

Commit e0cee62

Browse files
committed
Add error message for when OmniRig isn't installed.
1 parent aefc8a9 commit e0cee62

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Notes
4646

4747
* Adding support for other Icom transceivers should be easy, although many of them support NTP (Network Time Protocol). Create an "Issue" if you needs support for your rig.
4848

49+
* For trouble shooting type `echo Exit Code is %errorlevel%` after the program has just run to see the exit code.
50+
4951
The application is written in C++ with Visual Studio.
5052

5153

src/OmniRigV1.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ OmniRigV1::OmniRigV1(ProgramOptions &options) : OmniRigBase(options) {
3232
reinterpret_cast<void**>(&pOmniRigX)
3333

3434
);
35-
if (FAILED(hr))
35+
if (FAILED(hr)) {
36+
std::cout << "ERROR: OmniRig not found";
3637
exit(E_OMNIRIG_COM_CREATE);
38+
}
3739

3840
if (!options.isQuiet()) {
3941
displayOmniRigInfo(pOmniRigX);

src/OmniRigV2.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ OmniRigV2::OmniRigV2(ProgramOptions &options) : OmniRigBase(options) {
3232
reinterpret_cast<void**>(&pOmniRigX)
3333

3434
);
35-
if (FAILED(hr))
35+
if (FAILED(hr)) {
36+
std::cout << "ERROR: OmniRig 2 not found";
3637
exit(E_OMNIRIG_COM_CREATE);
38+
}
3739

3840
if (!options.isQuiet()) {
3941
displayOmniRigInfo(pOmniRigX);

0 commit comments

Comments
 (0)