diff options
Diffstat (limited to 'packet')
-rw-r--r-- | packet/bmp.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packet/bmp.go b/packet/bmp.go index bc789c66..0b78b405 100644 --- a/packet/bmp.go +++ b/packet/bmp.go @@ -45,7 +45,7 @@ const ( func (h *BMPHeader) DecodeFromBytes(data []byte) error { h.Version = data[0] - if data[0] != 3 { + if data[0] != BMP_VERSION { return fmt.Errorf("error version") } h.Length = binary.BigEndian.Uint32(data[1:5]) |