hww/OP_INFO: add BitBoxBase platform/edition
@@ -103,18 +103,19 @@ static size_t _api_info(uint8_t* buf)
memcpy((char*)current, DIGITAL_BITBOX_VERSION_SHORT, version_string_len);
current += version_string_len;
- // 1 byte platform code
- // TODO: add BitBoxBase platform
+ // 1 byte platform code and 1 byte edition code
+#if (PRODUCT_BITBOX_MULTI == 1) || defined(FACTORYSETUP)
*current = 0x00;
current++;
-
- // 1 byte edition code
-#if PLATFORM_BITBOXBASE == 1
*current = 0x00;
-#elif defined(PRODUCT_BITBOX_MULTI) || defined(FACTORYSETUP)
+#elif PRODUCT_BITBOX_BTCONLY == 1
*current = 0x00;
-#elif defined(PRODUCT_BITBOX_BTCONLY)
+ current++;
+ *current = 0x01;
+#elif PRODUCT_BITBOX_BASE == 1
*current = 0x01;
+ current++;
+ *current = 0x00;
#endif
current++;
