chaeplin / esp8266_and_arduino

esp8266 mqtt node / esp8266
292 stars 89 forks source link

bug in rtc_boot_mode.gopro_mode = false #34

Closed chaeplin closed 8 years ago

chaeplin commented 8 years ago

https://github.com/chaeplin/esp8266_and_arduino/blob/master/_56-gopro-control/a-91-config-on-rtc/a-91-config-on-rtc.ino#L236

Power on with rtc_boot_mode.gopro_mode = false;, wifi connected to go pro. --> rtc men is corrupted.

https://github.com/chaeplin/esp8266_and_arduino/blob/master/_56-gopro-control/a-91-config-on-rtc/a-91-config-on-rtc.ino#L771-L779

  if (!rtc_boot_mode.gopro_mode && rtc_boot_mode.attempt_this > 4) { <---------------
    wifi_connect();
  } else {
    if ( rtc_boot_mode.twitter_phase > 1 ) {
      wifi_connect();
    } else {
      gopro_connect();
    }
  }