don't report in AP

Former-commit-id: 88474c14b21b2d40741108903967373a5bf88f31
master
Ondřej Hruška 9 years ago
parent 758ab2d132
commit 324ce7b5bf
  1. 9
      user/reporting.c

@ -157,6 +157,15 @@ bool FLASH_FN capture_and_report(bool do_report)
return false;
}
if (do_report) {
// don't report in AP mode
WIFI_MODE mode = wifi_get_opmode();
if (mode != STATION_MODE && mode != STATIONAP_MODE) {
warn("Not in station mode, cannot report.");
do_report = false;
}
}
rpt_result.ready = false;
rpt_result.busy = true;

Loading…
Cancel
Save