Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed millis build error #23

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/junctek_kgf/junctek_kgf.cpp
Expand Up @@ -89,7 +89,7 @@ void JuncTekKGF::handle_settings(const char* buffer)
// Save the capacity for calculating the %
this->battery_capacity_ = batteryAmpHourCapacity;

this->last_settings_ = millis();
this->last_settings_ = esphome::millis();
}

void JuncTekKGF::handle_status(const char* buffer)
Expand Down Expand Up @@ -131,7 +131,7 @@ void JuncTekKGF::handle_status(const char* buffer)
if (temperature_)
this->temperature_->publish_state(temperature);

this->last_stats_ = millis();
this->last_stats_ = esphome::millis();
}

void JuncTekKGF::handle_line()
Expand Down Expand Up @@ -188,7 +188,7 @@ bool JuncTekKGF::verify_checksum(int checksum, const char* buffer)

void JuncTekKGF::loop()
{
const unsigned long start_time = millis();
const unsigned long start_time = esphome::millis();

if (!this->last_settings_ || (*this->last_settings_ + (30 * 1000)) < start_time)
{
Expand Down