mirror of
https://github.com/travisgoodspeed/goodwatch
synced 2024-11-21 15:48:02 +00:00
Minor cleanup to the Morse app. Now use the Set button to exit raw mode.
This commit is contained in:
parent
fa91178854
commit
f90e668bea
@ -8,6 +8,9 @@
|
||||
|
||||
7 transmits "73", 1 transmits "CQ CQ CQ CQ", 0 transmits "K", and /
|
||||
transmits the owner's callsign.
|
||||
|
||||
+ is a straight key, or you can press = to enter raw mode, where the
|
||||
mode button is a straight key. The SET button will exit raw mode.
|
||||
|
||||
*/
|
||||
|
||||
@ -15,6 +18,7 @@
|
||||
#include "api.h"
|
||||
|
||||
|
||||
|
||||
//! Enter the Morse application.
|
||||
void morse_init(){
|
||||
/* Power management being king, we shouldn't initialize the radio
|
||||
@ -62,6 +66,7 @@ int morse_keypress(char ch){
|
||||
break;
|
||||
|
||||
case '+': //One raw transmission.
|
||||
lcd_string(" TX");
|
||||
do{
|
||||
radio_strobe(RF_STX);
|
||||
__delay_cycles(300);
|
||||
@ -75,7 +80,7 @@ int morse_keypress(char ch){
|
||||
mode button causes a carrier to be transmitted. Exit by pressing
|
||||
the button again.
|
||||
|
||||
Set-button is a straight key.
|
||||
Mode-button is a straight key.
|
||||
*/
|
||||
lcd_string(" RAW CW ");
|
||||
lcd_postdraw();
|
||||
@ -92,7 +97,7 @@ int morse_keypress(char ch){
|
||||
__delay_cycles(300);
|
||||
}
|
||||
}
|
||||
}while(getchar()!='=');//!sidebutton_set());
|
||||
}while(!sidebutton_set());
|
||||
lcd_string("RAW EXIT");
|
||||
lcd_postdraw();
|
||||
__delay_cycles(6000);
|
||||
|
Loading…
Reference in New Issue
Block a user