Skip to content

Commit

Permalink
Updated GeoCOM API.
Browse files Browse the repository at this point in the history
  • Loading branch information
interkosmos committed Feb 26, 2024
1 parent 30c9748 commit 62b077c
Show file tree
Hide file tree
Showing 2 changed files with 609 additions and 488 deletions.
10 changes: 5 additions & 5 deletions src/dm_geocom.f90
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ integer function geocom_beep_alarm(this) result(grc)
class(geocom_class), intent(inout) :: this !! GeoCOM object.
type(request_type) :: request

call dm_geocom_api_beep_alarm(request)
call dm_geocom_api_request_beep_alarm(request)
call this%send(request)
grc = this%grc
end function geocom_beep_alarm
Expand All @@ -169,7 +169,7 @@ integer function geocom_beep_normal(this) result(grc)
class(geocom_class), intent(inout) :: this !! GeoCOM object.
type(request_type) :: request

call dm_geocom_api_beep_normal(request)
call dm_geocom_api_request_beep_normal(request)
call this%send(request)
grc = this%grc
end function geocom_beep_normal
Expand All @@ -181,7 +181,7 @@ integer function geocom_beep_off(this) result(grc)
class(geocom_class), intent(inout) :: this !! GeoCOM object.
type(request_type) :: request

call dm_geocom_api_beep_off(request)
call dm_geocom_api_request_beep_off(request)
call this%send(request)
grc = this%grc
end function geocom_beep_off
Expand All @@ -200,9 +200,9 @@ integer function geocom_beep_on(this, intensity) result(grc)
type(request_type) :: request

intensity_ = GEOCOM_IOS_BEEP_STDINTENS
if (present(intensity)) intensity_ = max(0, min(intensity, GEOCOM_IOS_BEEP_STDINTENS))
if (present(intensity)) intensity_ = max(0, min(100, intensity))

call dm_geocom_api_beep_on(request, intensity_)
call dm_geocom_api_request_beep_on(request, intensity_)
call this%send(request)
grc = this%grc
end function geocom_beep_on
Expand Down
Loading

0 comments on commit 62b077c

Please sign in to comment.