Skip to content

Conversation

gabebear
Copy link

@gabebear gabebear commented Aug 7, 2019

The error code being sent for "Device Lock" here was getting sent as -402652958 rather than 3892314338.

Currently check_error() casts the return to unsigned int so also casting the call for image-mounting were correctly sending the expected unsigned value in the JSON; this makes the JSON value for image-mounting issues come through as an unsigned int which can be compared to the hex values that are expected(e.g. 0xe80000e2 = 3892314338, not -402652958 ).

The error code being sent for "Device Lock" here was getting sent as -402652958 rather than 3892314338.

Currently  check_error() casts the return to `unsigned int` so also casting the call for image-mounting were correctly sending the expected unsigned value in the JSON; this makes the JSON value for image-mounting issues come through as an unsigned int which can be compared to the hex values that are expected(e.g. 0xe80000e2 = 3892314338, not -402652958 ).
@shazron shazron added this to the 1.10.0 milestone Aug 8, 2019
@shazron shazron merged commit 4728e05 into ios-control:master Aug 8, 2019
@shazron shazron changed the title Always send unsigned error codes in JSON fix: always send unsigned error codes in JSON Aug 8, 2019
geekonion pushed a commit to geekonion/ios-deploy that referenced this pull request Jun 29, 2023
The error code being sent for "Device Lock" here was getting sent as -402652958 rather than 3892314338.

Currently  check_error() casts the return to `unsigned int` so also casting the call for image-mounting were correctly sending the expected unsigned value in the JSON; this makes the JSON value for image-mounting issues come through as an unsigned int which can be compared to the hex values that are expected(e.g. 0xe80000e2 = 3892314338, not -402652958 ).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants