Skip to content

Commit

Permalink
ajustes
Browse files Browse the repository at this point in the history
  • Loading branch information
softov committed Jul 19, 2019
1 parent 58eb8b7 commit 125c09e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/BrbBase/src/data/BrbMicroScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ int BrbMicroScriptCmpFunc(void *base_ptr, void *cb_data)

script->cmp1 = BRB_COMPARE_NUM(pin_value, cmp_value);

LOG_DEBUG(script_base->log_base, "CMP [%d] [%d] - [%d] [%d]\r\n", op_cmp->pin, script->cmp1, pin_value, cmp_value);
LOG_INFO(script_base->log_base, "CMP [%d] [%d] - [%d] [%d]\r\n", op_cmp->pin, script->cmp1, pin_value, cmp_value);

return 0;
}
Expand Down Expand Up @@ -413,7 +413,7 @@ int BrbMicroScriptJmpEqualFunc(void *base_ptr, void *cb_data)
BrbMicroScript *script = (BrbMicroScript *)cb_data;
BrbMicroScriptOPIf *op_if = (BrbMicroScriptOPIf *)&script->code.arr[script->code.offt + 1];

// LOG_DEBUG(script_base->log_base, "EQ [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);
// LOG_INFO(script_base->log_base, "EQ [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);

/* check param [1 great] [0 equal] [-1 less] */
if (script->cmp1 == 0)
Expand Down Expand Up @@ -441,7 +441,7 @@ int BrbMicroScriptJmpNotEqualFunc(void *base_ptr, void *cb_data)
BrbMicroScript *script = (BrbMicroScript *)cb_data;
BrbMicroScriptOPIf *op_if = (BrbMicroScriptOPIf *)&script->code.arr[script->code.offt + 1];

LOG_DEBUG(script_base->log_base, "NEQ [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);
LOG_INFO(script_base->log_base, "NEQ [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);

/* check param [1 great] [0 equal] [-1 less] */
if (script->cmp1 != 0)
Expand Down Expand Up @@ -469,7 +469,7 @@ int BrbMicroScriptJmpGreaterFunc(void *base_ptr, void *cb_data)
BrbMicroScript *script = (BrbMicroScript *)cb_data;
BrbMicroScriptOPIf *op_if = (BrbMicroScriptOPIf *)&script->code.arr[script->code.offt + 1];

LOG_DEBUG(script_base->log_base, "GE [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);
LOG_INFO(script_base->log_base, "GE [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);

/* check param [1 great] [0 equal] [-1 less] */
if (script->cmp1 > 0)
Expand Down Expand Up @@ -497,7 +497,7 @@ int BrbMicroScriptJmpNotGreaterFunc(void *base_ptr, void *cb_data)
BrbMicroScript *script = (BrbMicroScript *)cb_data;
BrbMicroScriptOPIf *op_if = (BrbMicroScriptOPIf *)&script->code.arr[script->code.offt + 1];

LOG_DEBUG(script_base->log_base, "NGE [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);
LOG_INFO(script_base->log_base, "NGE [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);

/* check param [1 great] [0 equal] [-1 less] */
if (script->cmp1 <= 0)
Expand Down Expand Up @@ -525,7 +525,7 @@ int BrbMicroScriptJmpLesserFunc(void *base_ptr, void *cb_data)
BrbMicroScript *script = (BrbMicroScript *)cb_data;
BrbMicroScriptOPIf *op_if = (BrbMicroScriptOPIf *)&script->code.arr[script->code.offt + 1];

LOG_DEBUG(script_base->log_base, "LE [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);
LOG_INFO(script_base->log_base, "LE [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);

/* check param [1 great] [0 equal] [-1 less] */
if (script->cmp1 < 0)
Expand Down Expand Up @@ -553,7 +553,7 @@ int BrbMicroScriptJmpNotLesserFunc(void *base_ptr, void *cb_data)
BrbMicroScript *script = (BrbMicroScript *)cb_data;
BrbMicroScriptOPIf *op_if = (BrbMicroScriptOPIf *)&script->code.arr[script->code.offt + 1];

LOG_DEBUG(script_base->log_base, "NLE [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);
LOG_INFO(script_base->log_base, "NLE [%d] - el [%u] en [%u]\r\n", script->cmp1, op_if->else_offset, op_if->end_offset);

/* check param [1 great] [0 equal] [-1 less] */
if (script->cmp1 >= 0)
Expand Down

0 comments on commit 125c09e

Please sign in to comment.