jtag/core: Use 'bool' data type for 'bypass'
Change-Id: I918fd5ce674e808ad6a96634a11046d2b3f6a05c Signed-off-by: Marc Schink <dev@zapb.de> Reviewed-on: https://review.openocd.org/c/openocd/+/8040 Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Tested-by: jenkins
This commit is contained in:
committed by
Antonio Borneo
parent
f018cd7d90
commit
d2b34b4740
@@ -76,13 +76,13 @@ int interface_jtag_add_ir_scan(struct jtag_tap *active,
|
||||
|
||||
if (tap == active) {
|
||||
/* if TAP is listed in input fields, copy the value */
|
||||
tap->bypass = 0;
|
||||
tap->bypass = false;
|
||||
|
||||
jtag_scan_field_clone(field, in_fields);
|
||||
} else {
|
||||
/* if a TAP isn't listed in input fields, set it to BYPASS */
|
||||
|
||||
tap->bypass = 1;
|
||||
tap->bypass = true;
|
||||
|
||||
field->num_bits = tap->ir_length;
|
||||
field->out_value = buf_set_ones(cmd_queue_alloc(DIV_ROUND_UP(tap->ir_length, 8)), tap->ir_length);
|
||||
|
||||
Reference in New Issue
Block a user