Fix a bug in bitread when writing the same frame multiple times

Signed-off-by: Clifford Wolf <clifford@clifford.at>
Signed-off-by: Tim 'mithro' Ansell <mithro@mithis.com>
This commit is contained in:
Clifford Wolf 2017-10-14 01:33:47 +02:00
parent 916cae0ccd
commit c860a78a86
1 changed files with 1 additions and 0 deletions

View File

@ -178,6 +178,7 @@ void handle_write(int regaddr, uint32_t data)
{
if (regaddr == REG_FAR) {
frameptr = data;
configframes[frameptr].clear();
configframes_autoincr.erase(frameptr);
}