Skip to content

Commit b5b4d81

Browse files
committed
Only allow external access of internal state when using this for test build - its only needed for the test code and there is no need for the firmware to know the internal state of the OTALogic (only if an error did occur)
1 parent e38d7e8 commit b5b4d81

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utility/ota/OTALogic.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ class OTALogic
6161
void update();
6262
void onOTADataReceived(uint8_t const * const data, size_t const length);
6363

64+
#ifdef HOST
6465
inline OTAState state() const { return _ota_state; }
66+
#endif
6567
inline OTAError error() const { return _ota_error; }
6668

6769

0 commit comments

Comments
 (0)