Skip to content

Commit

Permalink
Detect TT not initialized state (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
icedevml committed Aug 22, 2022
1 parent 7410355 commit e2ed45a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ def _internal_sdm(with_tt=False):
elif tt_perm_status == 'O' and tt_cur_status == 'O':
tt_status = 'Tampered! (loop open)'
tt_color = 'red'
elif tt_perm_status == 'I' and tt_cur_status == 'I':
tt_status = 'Not initialized'
tt_color = 'orange'
else:
tt_status = 'Unknown'
tt_color = 'yellow'
tt_color = 'orange'

if request.args.get("output") == "json":
return jsonify({
Expand Down

0 comments on commit e2ed45a

Please sign in to comment.