[Solved] Device: Generic - System Info - Vcc always -1

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
dampa
Normal user
Posts: 87
Joined: 19 Jul 2018, 01:48

[Solved] Device: Generic - System Info - Vcc always -1

#1 Post by dampa » 04 Mar 2020, 17:09

Hardware: WeMos D1 pro
ESPeasy version: mega-20200222

Device: Generic - System Info

If I select 'Input VCC' as one of the options, it always returns -1. Taking a dive into the code, I see in _P026_Sysinfo.ino starting at line 198

Code: Select all

    case 3:
    {
# if FEATURE_ADC_VCC
      value = vcc;
# else // if FEATURE_ADC_VCC
      value = -1.0;
# endif // if FEATURE_ADC_VCC
      break;
    }
which always causes -1 to be returned.

BUG??
Last edited by dampa on 05 Mar 2020, 10:20, edited 3 times in total.

User avatar
ThomasB
Normal user
Posts: 1065
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Device: Generic sysingo - Vcc always -1

#2 Post by ThomasB » 04 Mar 2020, 18:01

To use the VCC option you must flash with a firmware file that has "_VCC" in its name. For example:
ESP_Easy_mega-20200222_test_ESP8266_4M1M_VCC.bin

Or if you self compile you need to configure the FEATURE_ADC_VCC flag in your build settings.

- Thomas

dampa
Normal user
Posts: 87
Joined: 19 Jul 2018, 01:48

Re: Device: Generic sysingo - Vcc always -1

#3 Post by dampa » 04 Mar 2020, 22:24

Thanks Thomas!

Other than the fact the OTA update hosed the WeMos and I had to flash it to a blank.bin then couldn't figure why I couldn't get into it (Duh blank.bin!!) Once I flashed it with the VCC version and was able to reload my settings (Yea! I did something right by backing them up before starting) It is now workig fine.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 83 guests