]> sigrok.org Git - libsigrok.git/commit - src/hardware/asix-sigma/protocol.c
asix-sigma: Fix firmware path construction
authorMarek Vasut <redacted>
Sun, 20 Apr 2014 15:49:29 +0000 (17:49 +0200)
committerBert Vermeulen <redacted>
Wed, 30 Apr 2014 16:45:50 +0000 (09:45 -0700)
commit499b17e9c043e1ec92e71095289d63f09b981eea
tree3dea998825ce1017869e238d274b8b7fed4f6d65
parentd5fa188ac93149cb75340d615a1815cbca1f852b
asix-sigma: Fix firmware path construction

The code silently assumed the firmware path can be no longer than 128 bytes.
This doesn't scale. This patch fixes it in such a way that it completely
rips out the run-time computation of firmware path and instead replaces it
with compile-time computation. It's true this makes the library grow by a
couple bytes, but makes the code cleaner.

Signed-off-by: Marek Vasut <redacted>
hardware/asix-sigma/asix-sigma.c