Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FT817 ft817_set_powerstat for power on dont work #363

Closed
F4HTB opened this issue Sep 3, 2020 · 1 comment
Closed

FT817 ft817_set_powerstat for power on dont work #363

F4HTB opened this issue Sep 3, 2020 · 1 comment
Labels

Comments

@F4HTB
Copy link

F4HTB commented Sep 3, 2020

Hello,

Juste a litle message to say that your ft817_set_powerstat dont work.
I have already have this issue in my pyton script, you must send:

0xff, 0xff, 0xff, 0xff, 0xff
and after
0x00, 0x00, 0x00, 0x00, 0x0f

maybe like :

int ft817_set_powerstat(RIG *rig, powerstat_t status)
{
rig_debug(RIG_DEBUG_VERBOSE, "%s: called\n", func);

switch (status)
{
case RIG_POWER_OFF:
    return ft817_send_cmd(rig, FT817_NATIVE_CAT_PWR_OFF);

case RIG_POWER_ON:
    ft817_send_cmd(rig, { 1, { 0xff, 0xff, 0xff, 0xff, 0xff } });
    return ft817_send_cmd(rig, FT817_NATIVE_CAT_PWR_ON);

case RIG_POWER_STANDBY:
default:
    return -RIG_EINVAL;
}

}

@mdblack98
Copy link
Contributor

mdblack98 commented Sep 3, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants