kopia lustrzana https://github.com/bristol-seds/pico-tracker
[Refactor] Inverted the sense of the RTTY to meet the standard
rodzic
fb60d489d3
commit
2625019db5
|
@ -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++;
|
||||
|
|
Ładowanie…
Reference in New Issue