Skip to content

Commit 438f34a

Browse files
authored
Added additional OculusPauseReasonEnum values (#18)
Co-authored-by: Aaron Marburg <[email protected]>
1 parent a687e70 commit 438f34a

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

lib/StatusRx.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
*/
3030

3131
#include <string.h>
32+
#include <iomanip>
3233
#include <sstream>
3334

3435
#include <arpa/inet.h>
@@ -148,6 +149,15 @@ bool StatusRx::parseStatus(const SonarStatus &status) {
148149
LOG(WARNING) << "Halt: Flash Error. Update firmware";
149150
} else if (prt == oculusPauseJtagLoad) {
150151
LOG(WARNING) << "Halt: JTAG Load";
152+
} else if (prt == oculusPauseFirmwareError) {
153+
LOG(WARNING) << "Halt: Firmware error";
154+
} else if (prt == oculusPauseCompatibilityError) {
155+
LOG(WARNING) << "Halt: Compatibility error";
156+
} else if (prt == oculusPauseBrownout) {
157+
LOG(WARNING) << "Halt: Brownout";
158+
} else {
159+
LOG(WARNING) << "Halt: unknown error (0x" << std::hex
160+
<< static_cast<int>(prt) << ")";
151161
}
152162

153163
return false;

thirdparty/Oculus/Oculus.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ enum OculusPauseReasonType : uint8_t
4646
oculusPauseBootFromMain,
4747
oculusPauseFlashError,
4848
oculusPauseJtagLoad,
49+
oculusPauseFirmwareError,
50+
oculusPauseCompatibilityError,
51+
oculusPauseBrownout
4952
};
5053

5154
enum OculusTemperatureStatusType : uint8_t

0 commit comments

Comments
 (0)