Skip to content

Commit 6b526d0

Browse files
committed
fix: try to fix tare issue before brew process start
1 parent 447d98a commit 6b526d0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/display/plugins/BLEScalePlugin.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void BLEScalePlugin::setup(Controller *controller, PluginManager *manager) {
9393
ESP_LOGW("BLEScalePlugin", "Controller disconnected, stopping BLE scan");
9494
active = false;
9595
});
96-
manager->on("controller:brew:prestart", [this](Event const &) { onProcessStart(); });
96+
manager->on("controller:brew:prestart", [this](Event const &) { onProcessStart(); delay(100); });
9797
manager->on("controller:brew:end", [this](Event const &) {
9898
if (scale != nullptr && scale->isConnected() && scale->hasTimerControl()) {
9999
scale->stopTimer();
@@ -260,7 +260,6 @@ void BLEScalePlugin::pollScaleMetadata() {
260260
}
261261

262262
void BLEScalePlugin::tare() const {
263-
controller->onVolumetricMeasurement(0.0, VolumetricMeasurementSource::BLUETOOTH);
264263
onProcessStart();
265264
}
266265

0 commit comments

Comments
 (0)