File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ OTALogic::OTALogic(OTAStorage & ota_storage)
48
48
* PUBLIC MEMBER FUNCTIONS
49
49
******************************************************************************/
50
50
51
- void OTALogic::update ()
51
+ OTAError OTALogic::update ()
52
52
{
53
53
OTAState prev_ota_state;
54
54
/* The purpose of this loop is to allow the transition of
@@ -74,6 +74,8 @@ void OTALogic::update()
74
74
case OTAState::Error: break ;
75
75
}
76
76
} while (_ota_state != prev_ota_state);
77
+
78
+ return _ota_error;
77
79
}
78
80
79
81
void OTALogic::onOTADataReceived (uint8_t const * const data, size_t const length)
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class OTALogic
58
58
OTALogic (OTAStorage & ota_storage);
59
59
60
60
61
- void update ();
61
+ OTAError update ();
62
62
void onOTADataReceived (uint8_t const * const data, size_t const length);
63
63
64
64
#ifdef HOST
You can’t perform that action at this time.
0 commit comments