Skip to content

Commit aa71482

Browse files
print on frwite error
1 parent 74404d1 commit aa71482

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/ota/interface/OTAInterfaceDefault.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ OTACloudProcessInterface::State OTADefaultCloudProcessInterface::startOTA() {
3535
context = new Context(
3636
OTACloudProcessInterface::context->url,
3737
[this](uint8_t c) {
38-
// int res =
38+
int res =
3939
this->writeFlash(&c, 1);
4040

41+
if(res != 1) {
42+
DEBUG_VERBOSE("frwrite error %d", res);
43+
}
4144
// TODO report error in write flash, throw it?
4245
}
4346
);

0 commit comments

Comments
 (0)