Skip to content

Commit

Permalink
Add "NOT COMPUTABLE" rendering to match Nightscout
Browse files Browse the repository at this point in the history
This is what happens when changing the Dexcom G6 sensor.
  • Loading branch information
TooTallNate committed Jul 29, 2018
1 parent 85c55fe commit 6ff8ef9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/bash.sh
Expand Up @@ -67,6 +67,13 @@ nightscout_ps1() {
fi
fi

if [ "${latest_entry_direction}" = "NOT COMPUTABLE" ]; then
color="${BOLD}${RED}"
bgl="?"
delta="NC"
trend="✖︎"
fi

printf "\001%s\002%s %s %s\001%s\002" \
"${color}" "${bgl}" "${delta}" "${trend}" "${NO_COLOR}"
}

0 comments on commit 6ff8ef9

Please sign in to comment.