Skip to content

Commit c93f8ab

Browse files
authored
Merge pull request #47 from agaviola80/sandisk-powerontimes-fix
Fix SanDisk powerOnTimes output value
2 parents 5f658e6 + 625bb1b commit c93f8ab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/sdmon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ int main(int argc, char* const* argv) {
475475
strncpy(tmpstr, (char *)&data_in[49], 32);
476476
tmpstr[32] = 0;
477477
json_object_push(j, "productString", json_string_new(tmpstr));
478-
json_object_push(j, "powerOnTimes", json_integer_new(nwordbe_to_int(data_in, 23, 3)));
478+
json_object_push(j, "powerOnTimes", json_integer_new(nwordbe_to_int(data_in, 24, 3)));
479479
close(fd);
480480
json_object_push(j, "success", json_boolean_new(1));
481481
json_print_and_free(j);

0 commit comments

Comments
 (0)