remove stxx defaults offsets

This commit is contained in:
Daniel Esteban
2019-12-24 17:19:04 +01:00
committed by Ron Evans
parent 3bb5b4519b
commit dc883d913d
2 changed files with 4 additions and 24 deletions
+2 -9
View File
@@ -66,15 +66,8 @@ func (d *Device) Configure(cfg Config) {
d.height = 240
}
d.rotation = cfg.Rotation
if cfg.RowOffset != 0 {
d.rowOffsetCfg = cfg.RowOffset
} else {
d.rowOffsetCfg = 80
}
if cfg.ColumnOffset != 0 {
d.columnOffsetCfg = cfg.ColumnOffset
}
d.rowOffsetCfg = cfg.RowOffset
d.columnOffsetCfg = cfg.ColumnOffset
d.batchLength = int32(d.width)
if d.height > d.width {