-
Notifications
You must be signed in to change notification settings - Fork 48
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
"Go to Presets" error #184
Comments
10-14 are predefined presets. |
The file content looks like this: 0=Start|2364|-102 |
Mmmmh |
I tried - it was saved as a negative number again. |
When the camera starts up, does it do a full pan and tilt? |
I think, there's a bug in ptz.c Lines 572 to 577 in f83fcd8
I think it should be x = preset_buffer[3];
y = preset_buffer[4];
if (x < MIN_X) x = MIN_X;
if (x > MAX_X) x = MAX_X;
if (y < MIN_Y) y = MIN_Y;
if (y < MAX_Y) y = MAX_Y; otherwise your limits to min(0) and max won't work. @roleoroleo: why do you limit to 0 when /dev/ptz delivers negative numbers? |
@renegade304 you could give my changes a try. you can download a file at the bottom here: https://github.com/roleoroleo/sonoff-hack/actions/runs/13616982538 |
The "Go to Presets" command does not work on positions 0 - 9, even though they are saved. Preset numbers 10 - 14 work correctly.
The text was updated successfully, but these errors were encountered: