Skip to content

Commit

Permalink
make client name of SRS message optional
Browse files Browse the repository at this point in the history
Refs #28
  • Loading branch information
rkusa committed Nov 16, 2019
1 parent 5ac74e9 commit b4d4ddd
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Fixed
- Update SRS message parser to work with SRS 1.7.0.3

## [1.0.0-alpha.5] - 2019-11-06
### Fixed
- fix build to not use static test weather reports for each station
- Fix build to not use static test weather reports for each station

## [1.0.0-alpha.4] - 2019-11-02
### Added
Expand Down
2 changes: 1 addition & 1 deletion crates/srs/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ pub struct RadioInfo {
#[serde(rename_all = "PascalCase")]
pub struct Client {
pub client_guid: String,
pub name: String,
pub name: Option<String>,
pub position: Position,
pub coalition: Coalition,
pub radio_info: Option<RadioInfo>,
Expand Down
6 changes: 3 additions & 3 deletions crates/srs/src/voice_stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ fn create_sync_message(client: &Client) -> Message {
Message {
client: Some(MsgClient {
client_guid: client.sguid().to_string(),
name: client.name().to_string(),
name: Some(client.name().to_string()),
position: pos.clone(),
coalition: Coalition::Blue,
radio_info: Some(RadioInfo {
Expand Down Expand Up @@ -264,7 +264,7 @@ fn create_update_message(client: &Client) -> Message {
Message {
client: Some(MsgClient {
client_guid: client.sguid().to_string(),
name: client.name().to_string(),
name: Some(client.name().to_string()),
position: client.position(),
coalition: Coalition::Blue,
radio_info: None,
Expand All @@ -279,7 +279,7 @@ fn create_radio_update_message(client: &Client) -> Message {
Message {
client: Some(MsgClient {
client_guid: client.sguid().to_string(),
name: client.name().to_string(),
name: Some(client.name().to_string()),
position: pos.clone(),
coalition: Coalition::Blue,
radio_info: Some(RadioInfo {
Expand Down

0 comments on commit b4d4ddd

Please sign in to comment.