Skip to content

Commit

Permalink
removed unnecessary float
Browse files Browse the repository at this point in the history
  • Loading branch information
Apfelwurm committed Sep 15, 2021
1 parent 30c0be7 commit a9166cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/volumehidtoosc.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,14 +146,14 @@ char *extract_hid_eventname()
int sendosc(float currvol)
{
printf("sendvol %f\n", currvol);
if (lo_send(t, cfg_getstr(cfg, "OSC_PATH"), "ff", currvol) == -1) {
if (lo_send(t, cfg_getstr(cfg, "OSC_PATH"), "f", currvol) == -1) {
fprintf(logfile, "OSC error %d: %s\n", lo_address_errno(t), lo_address_errstr(t));
fflush(logfile);
}

if (strcmp(cfg_getstr(cfg, "IP2"), "") != 0 && strcmp(cfg_getstr(cfg, "PORT2"), "") != 0)
{
if (lo_send(t2, cfg_getstr(cfg, "OSC_PATH"), "ff", currvol) == -1) {
if (lo_send(t2, cfg_getstr(cfg, "OSC_PATH"), "f", currvol) == -1) {
fprintf(logfile, "OSC error %d: %s\n", lo_address_errno(t), lo_address_errstr(t));
fflush(logfile);
}
Expand Down

0 comments on commit a9166cd

Please sign in to comment.