Skip to content
This repository has been archived by the owner on May 28, 2019. It is now read-only.

Commit

Permalink
xmr: diag style
Browse files Browse the repository at this point in the history
  • Loading branch information
ph4r05 committed Sep 13, 2018
1 parent 5ccb2fb commit 89ae3ba
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/apps/monero/diag.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
PREV_MEM = gc.mem_free()
CUR_MES = 0


def log_trace(x=None):
log.debug(
__name__,
Expand All @@ -19,7 +18,6 @@ def log_trace(x=None):
micropython.stack_use(),
)


def check_mem(x=""):
global PREV_MEM, CUR_MES

Expand All @@ -37,13 +35,11 @@ def check_mem(x=""):
CUR_MES += 1
PREV_MEM = free


def retit(**kwargs):
from trezor.messages.Failure import Failure

return Failure(**kwargs)


async def diag(ctx, msg, **kwargs):
log.debug(__name__, "----diagnostics")
gc.collect()
Expand Down

0 comments on commit 89ae3ba

Please sign in to comment.