mirror of
https://github.com/hneemann/Digital.git
synced 2025-09-14 07:17:13 -04:00
csv format is hexadecimal by default if more than 3 bits are used. See #349
This commit is contained in:
parent
7a2bc323a5
commit
c16f313b00
@ -295,8 +295,8 @@ public class ValueTable extends Observable implements Iterable<TestRow> {
|
||||
* Columns formatting information
|
||||
*/
|
||||
public static final class ColumnInfo {
|
||||
private int bits;
|
||||
private IntFormat format;
|
||||
private final int bits;
|
||||
private final IntFormat format;
|
||||
|
||||
/**
|
||||
* Creates a new instance
|
||||
@ -305,6 +305,10 @@ public class ValueTable extends Observable implements Iterable<TestRow> {
|
||||
* @param bits the number of bits to output
|
||||
*/
|
||||
public ColumnInfo(IntFormat format, int bits) {
|
||||
if (format == null)
|
||||
format = IntFormat.def;
|
||||
if (format.equals(IntFormat.def) && (bits > 3))
|
||||
format = IntFormat.hex;
|
||||
this.format = format;
|
||||
this.bits = bits;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user