Skip to content

Commit

Permalink
4x4 flat: fixing incoming port for spliiter mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
mar0x committed Jul 15, 2022
1 parent e4043c2 commit bc99e1c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions firmware/midi-router-x4-flat/midi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ template<> uint8_t uart_e0::want_write = 0;
namespace midi {

void init() {
PORTD.INT0MASK = 0;
PORTD.INTCTRL = 0;
PORTE.INT0MASK = 0;
PORTE.INTCTRL = 0;

uart_c0::setup();
uart_c1::setup();
Expand All @@ -51,8 +51,8 @@ void splitter() {
uart_d0::port_traits::setup_pins();
uart_e0::port_traits::setup_pins();

PORTD.INT0MASK = uart_d0::port_traits::rx::traits::bit_mask;
PORTD.INTCTRL = PORT_INT0LVL_HI_gc;
PORTE.INT0MASK = uart_e0::port_traits::rx::traits::bit_mask;
PORTE.INTCTRL = PORT_INT0LVL_HI_gc;
}

uint8_t send(uint8_t port, const uint8_t *buf, uint8_t size) {
Expand Down Expand Up @@ -101,11 +101,11 @@ ISR(USARTD0_DRE_vect)
uart_d0::on_dre_int();
}

ISR(PORTD_INT0_vect)
ISR(PORTE_INT0_vect)
{
crit_sec cs;

bool v = uart_d0::rx::read();
bool v = uart_e0::rx::read();

if (v) {
uart_d0::tx::high();
Expand Down
2 changes: 1 addition & 1 deletion firmware/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <string.h>

#define FW_VERSION "2022.03.27"
#define FW_VERSION "2022.07.15"

struct version_t {
enum {
Expand Down

0 comments on commit bc99e1c

Please sign in to comment.