Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Receiving a reset message should also reset bus speed #9

Open
prrole opened this issue Jan 2, 2025 · 0 comments
Open

Receiving a reset message should also reset bus speed #9

prrole opened this issue Jan 2, 2025 · 0 comments

Comments

@prrole
Copy link

prrole commented Jan 2, 2025

As title says, if a reset is received when operating in 1mbit or 3mbit, the bus speed should probably be set to power-on parameters, 115200.

 if ((msg_length - i) >= 2 && message[i] == 0xf0 && message[i+1] == 0xd9) {
                        printf("N: %02x Reset\n", node_num);
                        our_address = 0;
                        gpio_put(PIN_JVS_SENSE_0V, 0);
                        gpio_put(PIN_LED_ENUMERATED, 0);
                        uart_init(uart0, 115200);  // Set to standard JVS speed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant