Files
aqhomecontrol/avr/modules/sgp40/send.asm

26 lines
804 B
NASM

; ***************************************************************************
; copyright : (C) 2025 by Martin Preuss
; email : martin@libchipcard.de
;
; ***************************************************************************
; * This file is part of the project "AqHome". *
; * Please see toplevel file COPYING of that project for license details. *
; ***************************************************************************
.cseg
; ---------------------------------------------------------------------------
; @routine SGP40_SendTVOC
SGP40_SendTVOC:
rcall SGP40_GetValue
brcc SGP40_SendTVOC_end
ldi r17, VALUE_ID_SGP40_TVOC ; VALUE ID
ldi r22, AQHOME_VALUETYPE_TVOC ; VALUE TYPE
rcall Main_SendValueReport
SGP40_SendTVOC_end:
ret
; @end