Changeset - c52174ca9326
[Not reviewed]
default
0 1 0
Ethan Zonca (ethanzonca) - 9 years ago 2017-01-12 09:37:26
e@ethanzonca.com
Add safety check to afsk transmit start
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
Source/main.c
Show inline comments
 
@@ -52,26 +52,26 @@ int main(void)
 
 
  // Software timers
 
  uint32_t last_transmission = HAL_GetTick();
 
  uint32_t last_led = HAL_GetTick();
 
 
  while (1)
 
  {
 
	  // Blink LEDs
 
	  if(HAL_GetTick() - last_transmission > 700)
 
	  {
 
		  gps_update_data(); // Will always return at 1hz rate (default measurement rate)
 
		  pressure_read();
 
		  while(afsk_busy()); // ensure previous message finished
 
		  aprs_send();
 
		  //while(afsk_busy());
 
 
		  last_transmission = HAL_GetTick();
 
	  }
 
 
	  if(HAL_GetTick() - last_led > 100)
 
	  {
 
		  HAL_GPIO_TogglePin(LED_POWER);
 
		  last_led = HAL_GetTick();
 
	  }
 
 
	  if(afsk_request_cwoff())
 
		  si446x_cw_off();
0 comments (0 inline, 0 general)