Skip to content

Commit

Permalink
Fix building w/o OBD2ECU
Browse files Browse the repository at this point in the history
  • Loading branch information
dexterbg committed Mar 12, 2023
1 parent 61916a6 commit adb312c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vehicle/OVMS.V3/components/ovms_webserver/src/web_cfg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4006,7 +4006,11 @@ void OvmsWebServer::HandleEditor(PageEntry_t& p, PageContext_t& c)
"</div>\n"
, _attr(p.uri), _attr(path));

#ifdef CONFIG_OVMS_COMP_OBD2ECU
bool isECUEnabled = MyPeripherals->m_obd2ecu != nullptr;
#else
bool isECUEnabled = false;
#endif
c.printf(
"<div class=\"form-group\">\n"
"<div class=\"textarea-control pull-right\">\n"
Expand Down

0 comments on commit adb312c

Please sign in to comment.