Skip to content

Commit

Permalink
return values converted to integer from the hex string returned by sy…
Browse files Browse the repository at this point in the history
…stem call
  • Loading branch information
mnr committed Nov 29, 2023
1 parent fa9cba5 commit 97def1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rpi_i2c_get.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ rpi_i2c_get <- function(chip_address, data_address, data_size = "b") {
data_address,
data_size)

return(system(gpio_sysCall, intern = TRUE))
return(as.integer(system(gpio_sysCall, intern = TRUE)))
}

0 comments on commit 97def1d

Please sign in to comment.