Skip to content

Commit

Permalink
fix Tinyseed scan for GC2145
Browse files Browse the repository at this point in the history
disable grayscale mode for GC2145
  • Loading branch information
odudex committed Jun 25, 2024
1 parent 52f6495 commit cb1e4f1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ RUN pip3 install pyserial==3.4
# copy vendor, firmware and Kurx (src) files
# install embit dependency
############
FROM build-base as build-software
FROM build-base AS build-software
ARG DEVICE="maixpy_m5stickv"
ENV DEVICE_BUILTIN="firmware/MaixPy/projects/${DEVICE}/builtin_py"
RUN mkdir /src
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

[tool.poetry]
name = "krux"
version = "24.04.beta33"
version = "24.04.beta34"
description = "Open-source signing device firmware for Bitcoin"
authors = ["Jeff S <[email protected]>"]

Expand Down
3 changes: 2 additions & 1 deletion src/krux/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ def initialize_sensor(self, grayscale=False):
sensor.set_vflip(1)
else:
sensor.reset()
if grayscale:
if grayscale and self.cam_id != GC2145_ID:
# GC2145 does not support grayscale
sensor.set_pixformat(sensor.GRAYSCALE)
else:
sensor.set_pixformat(sensor.RGB565)
Expand Down
2 changes: 1 addition & 1 deletion src/krux/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
VERSION = "24.04.beta33"
VERSION = "24.04.beta34"
SIGNER_PUBKEY = "03339e883157e45891e61ca9df4cd3bb895ef32d475b8e793559ea10a36766689b"

0 comments on commit cb1e4f1

Please sign in to comment.