Hi all,
Short question. Is it expected behavior for a Teensy 3.1 that auto reboot no longer works after having changed the manufacturer and product names? teensy_post_compile/teensy_reboot tell me to press the program button. I'm using Linux.
As suggested on the forum I simply included a file (name.c) that defines the names. See below. lsusb -v and kern.log show the names and serial number are changed correctly. No other numbers/ids have changed.
Short question. Is it expected behavior for a Teensy 3.1 that auto reboot no longer works after having changed the manufacturer and product names? teensy_post_compile/teensy_reboot tell me to press the program button. I'm using Linux.
As suggested on the forum I simply included a file (name.c) that defines the names. See below. lsusb -v and kern.log show the names and serial number are changed correctly. No other numbers/ids have changed.
Code:
#include <usb_names.h>
#define MANUFACTURER_NAME {'F','o','o'}
#define MANUFACTURER_NAME_LEN 3
#define PRODUCT_NAME {'T','r','a','l','a','l','a'}
#define PRODUCT_NAME_LEN 7
struct usb_string_descriptor_struct usb_string_manufacturer_name = {
2 + MANUFACTURER_NAME_LEN * 2,
3,
MANUFACTURER_NAME
};
struct usb_string_descriptor_struct usb_string_product_name = {
2 + PRODUCT_NAME_LEN * 2,
3,
PRODUCT_NAME
};
struct usb_string_descriptor_struct usb_string_serial_number = {
2 + 10 * 2,
3,
{'1','2','3','4','5','6','7','8','9','0'}
};