[Refactor] Inverted the sense of the RTTY to meet the standard

rocketry
Richard Eoin Meadows 2014-10-24 19:37:12 +01:00
rodzic fb60d489d3
commit 2625019db5
1 zmienionych plików z 4 dodań i 4 usunięć

Wyświetl plik

@ -107,20 +107,20 @@ void rtty_tick(void) {
if (rtty_phase == 0) { // Start
// Low
//RTTY_SET(0);
port_pin_set_output_level(SI406X_GPIO1_PIN, 0);
port_pin_set_output_level(SI406X_GPIO1_PIN, 1);
} else if (rtty_phase < ASCII_BITS + 1) {
// Data
if ((rtty_string[rtty_index] >> (rtty_phase - 1)) & 1) {
//RTTY_SET(1);
port_pin_set_output_level(SI406X_GPIO1_PIN, 1);
port_pin_set_output_level(SI406X_GPIO1_PIN, 0);
} else {
//RTTY_SET(0);
port_pin_set_output_level(SI406X_GPIO1_PIN, 0);
port_pin_set_output_level(SI406X_GPIO1_PIN, 1);
}
} else if (rtty_phase < BITS_PER_CHAR) { // Stop
// High
//RTTY_SET(1);
port_pin_set_output_level(SI406X_GPIO1_PIN, 1);
port_pin_set_output_level(SI406X_GPIO1_PIN, 0);
}
rtty_phase++;