# HG changeset patch # User Michael Spacefalcon # Date 1402470676 0 # Node ID bb4814eb51e4770d30cd7c2eedac6ed376f3def3 # Parent e60aecf23970afb801c6c939b2a060e42d818d6b target-utils abb[rw] commands: call abb_init() to avoid dead hang diff -r e60aecf23970 -r bb4814eb51e4 target-utils/libcommon/abbcmd.c --- a/target-utils/libcommon/abbcmd.c Wed Jun 11 06:50:46 2014 +0000 +++ b/target-utils/libcommon/abbcmd.c Wed Jun 11 07:11:16 2014 +0000 @@ -25,6 +25,7 @@ printf("ERROR: argument(s) out of range\n"); return; } + abb_init(); val = abb_reg_read(PAGE(pg) | reg); printf("%03X\n", val); } @@ -45,5 +46,6 @@ printf("ERROR: argument(s) out of range\n"); return; } + abb_init(); abb_reg_write(PAGE(pg) | reg, val); }