Skip to content

Commit c507736

Browse files
committed
fix: Adjust max size to 312 bytes
The spec calls for 316 bytes, but an actual OpenPrintTag appeared to only have 312 bytes. I don't believe it's related to their issue yet, but it will be when attempting to write. Coded by hand.
1 parent 4244c2d commit c507736

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/org/vcoprinttag/MainActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class MainActivity : AppCompatActivity() {
151151
}
152152

153153
companion object {
154-
const val SPEC_SIZE_LIMIT = 316
154+
const val SPEC_SIZE_LIMIT = 312
155155
const val HARD_SIZE_LIMIT = 504
156156
}
157157

app/src/main/java/org/vcoprinttag/model/Serializer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ class Serializer(
4444
private val mapper = ObjectMapper(CBORFactory())
4545

4646
companion object {
47-
const val SPEC_SIZE_LIMIT = 316
47+
const val SPEC_SIZE_LIMIT = 312
4848
}
4949

5050
fun serialize(model: OpenPrintTagModel, reserveAuxSpace: Boolean = false): ByteArray {

0 commit comments

Comments
 (0)