commaai / opendbc

democratize access to car decoder rings

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Misplaced inline comment

ryleymcc opened this issue · comments

{% set b1 = (sig.start_bit//8)*8 + (-sig.start_bit-1) % 8 %}
There seems to be an extra '/' in the line. Found it while trying to port some code.

The // is for integer division in python. The code executed in those blocks is python, and the template is rendered by jinja2.