Update image_uploader docs

pull/1088/head
Connor Rigby 2019-12-17 14:45:47 -08:00 committed by Connor Rigby
parent 2603d087ce
commit 2f7f8057d1
1 changed files with 4 additions and 1 deletions

View File

@ -45,7 +45,10 @@ defmodule FarmbotExt.API.ImageUploader do
def handle_continue([], state), do: {:noreply, state, @checkup_time_ms}
# TODO(Connor) the meta here is likely inaccurate.
# the meta here is likely inaccurate here because of
# pulling the location data from the cache instead of from the firmware
# directly. It's close enough and getting data from the firmware directly
# would require more work than it is worth
defp try_upload(image_filename) do
%{x: x, y: y, z: z} = BotState.fetch().location_data.position
meta = %{x: x, y: y, z: z, name: Path.rootname(image_filename)}