olkal/HX711_ADC

Problem with LoadCell.tareNoDelay();

prashantlsharma opened this issue · 3 comments

Hello,
I have trouble modifying this:
if (Serial.available() > 0) {
if (Serial.available() > 0) {
char inByte = Serial.read();
if (inByte == 't') LoadCell.tareNoDelay();
}
}

I don't want to enter 't' to serial, since i want to process tareNoDelay() function directly even without giving any command since the whole process will be like when we will begin calibrate function there will be no wait placed on the tray and we want tareNoDelay() perform without even in getting any serial command. I have tried using flag or already pre defined char to perform the function but it never worked.
Please help me with thisHello,
I have trouble modifying this:
if (Serial.available() > 0) {
if (Serial.available() > 0) {
char inByte = Serial.read();
if (inByte == 't') LoadCell.tareNoDelay();
}
}

I don't want to enter 't' to serial, since i want to process tareNoDelay() function directly even without giving any command since the whole process will be like when we will begin calibrate function there will be no wait placed on the tray and we want tareNoDelay() perform without even in getting any serial command. I have tried using flag or already pre defined char to perform the function but it never worked.
Please help me with this

olkal commented

Hi!
I'm not sure that I understand what you want, but you can call the function tareNoDelay() from where ever you want in your code.

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.