Skip to content

Commit

Permalink
Check for FoF Success
Browse files Browse the repository at this point in the history
  • Loading branch information
amalnanavati committed Mar 22, 2024
1 parent 056ea57 commit 25d9966
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feedingwebapp/src/Pages/Home/MealStates/BiteDone.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const BiteDone = () => {
const foodOnForkDetectionCallback = useCallback(
(message) => {
console.log('Got food-on-fork detection message', message)
if (biteDoneAutoContinue) {
if (biteDoneAutoContinue && message.status === 1) {
if (message.probability < biteDoneAutoContinueProbabilityThreshold) {
console.log('Auto-continuing in ', remainingSeconds, ' seconds')
// Don't override an existing timer
Expand Down

0 comments on commit 25d9966

Please sign in to comment.